1 # Created by Octave 3.6.1, Sun Mar 25 17:34:24 2012 UTC <root@t61>
13 # name: <cell-element>
17 -- Function File: [Y,NUMIT,RESNRM] = nls_newton_raphson
18 (Y0,RES,JAC,TOL, MAXIT,VERBOSITY,UPDATE);
19 Solve a non-linear system of equations using the Newton-Raphson
20 method with damping and return the computed solution vector Y.
22 The initial guess for the algorithm is set to Y0.
24 The Jacobian and residual at each step are computed via the
25 function handles RES and JAC.
27 The variables TOL and MAXIT are the relative tolerance on the
28 error of the computed solution and the maximum number of
29 iterations to be performed by the algorithm.
31 The optional parameter VERBOSITY produce verbose output if
34 The optional function handle UPDATE may be used to provide a
35 faster mean to update Jacobian and residual at runtime.
37 NUMIT is the number of performed iterations while RESNRM is a
38 vector containing the residual norm at each step.
40 See also: nls_stationary, tst_backward_euler, tst_theta_method,
47 # name: <cell-element>
51 Solve a non-linear system of equations using the Newton-Raphson method
56 # name: <cell-element>
63 # name: <cell-element>
67 -- Function File: [OUT, NITER] = nls_stationary (INSTRUCT,X,TOL,MAXIT)
68 Compute the stationary state solution OUT of the system described
71 X is the initial guess used by the Newton-Raphson algorithm
72 implemented in `nls_newton_raphson', while TOL and MAXIT are the
73 corresponding parameters.
75 The optional output NITER returns the number of Newton iterations
76 needed to reach convergence.
78 See also: nls_newton_raphson
84 # name: <cell-element>
88 Compute the stationary state solution OUT of the system described by