- f
Function. A function f(x,y) that returns a numeric vector of length 2:
c(f1(x,y), f2(x,y)).
- x0
Numeric vector of length 2. Initial guess c(x0, y0).
- J
Optional function. A function J(x,y) returning a 2x2 numeric matrix
(the Jacobian). If NULL, a numerical Jacobian is used.
- h
Numeric scalar. Step size for numerical partial derivatives (when J is NULL).
- max_iter
Integer. Maximum number of Newton iterations.
- tol
Numeric scalar. Stopping tolerance based on the infinity norm:
max(|f1|,|f2|) <= tol.
- xlim
Numeric vector of length 2. Plot range for x. If NULL, it is chosen
from the iterates.
- ylim
Numeric vector of length 2. Plot range for y. If NULL, it is chosen
from the iterates.
- n_grid
Integer. Grid size per axis used to draw the zero level curves.
- frame_ms
Integer. Frame duration in milliseconds.
- transition_ms
Integer. Transition duration in milliseconds.
- title
Character. Plot title. If NULL, a default title is used.
- safe_mode
Logical. If TRUE, uses calmer animation defaults intended to
reduce flicker and visual stress.