Expand description
Roots of nonlinear systems F(x) = 0, F: ℝⁿ → ℝⁿ.
Both solvers are globalised by a backtracking line search on ½‖F‖² (Numerical Recipes’
newt and broydn), so they converge from much farther away than plain iteration:
newton_system: Newton’s method with an analytic or finite-difference Jacobian; quadratic convergence, one Jacobian per iteration.broyden_system: Broyden’s “good” rank-one update of the Jacobian; superlinear convergence with a single function evaluation per iteration, re-forming the Jacobian by finite differences only when the update stops producing descent.
See the book entry Nonlinear systems.
Structs§
- System
Options - Settings for the system solvers.
- System
Root Result - The outcome of a system solve.
Functions§
- broyden_
system - Broyden’s method for
F(x) = 0fromx0: the Jacobian estimateB(initially by finite differences) is corrected after each step byB ← B + ((Δf − B s) sᵀ) / (sᵀ s). - newton_
system - Globally convergent Newton’s method for
F(x) = 0fromx0.jacobian(x)returns the rows∂Fᵢ/∂xⱼ; withjacobian = Nonethe Jacobian is formed by forward differences. Errors for an emptyx0or mismatched dimensions; a singular Jacobian ends the iteration unconverged.