Navigation

Operators and Keywords

Function List:

C++ API

Function File: [y,numit,resnrm] = nls_newton_raphson (y0,RES,JAC,tol,maxit,verbosity,update);

Solve a non-linear system of equations using the Newton-Raphson method with damping and return the computed solution vector y.

The initial guess for the algorithm is set to y0.

The Jacobian and residual at each step are computed via the function handles RES and JAC.

The variables tol and maxit are the relative tolerance on the error of the computed solution and the maximum number of iterations to be performed by the algorithm.

The optional parameter verbosity produce verbose output if non-zero.

The optional function handle update may be used to provide a faster mean to update Jacobian and residual at runtime.

numit is the number of performed iterations while resnrm is a vector containing the residual norm at each step.

See also: nls_stationary,tst_backward_euler,tst_theta_method,tst_daspk,tst_odepkg.

Package: ocs