newtonsys.RdNewton's method applied to multivariate nonlinear functions.
newtonsys(Ffun, x0, Jfun = NULL, ...,
maxiter = 100, tol = .Machine$double.eps^(1/2))Solves the system of equations applying Newton's method with the univariate derivative replaced by the Jacobian.
List with components: zero the root found so far, fnorm the
square root of sum of squares of the values of f, and iter the
number of iterations needed.
Quarteroni, A., R. Sacco, and F. Saleri (2007). Numerical Mathematics. Second Edition, Springer-Verlag, Berlin Heidelberg.
TODO: better error checking, e.g. when the Jacobian is not invertible.