Skip to main content

Crate lib_jsl_root_finding

Crate lib_jsl_root_finding 

Source
Expand description

Root finding algorithms.

See the book chapter Root finding.

Re-exports§

pub use bracketing::bracket_root;
pub use bracketing::bracket_roots_scan;
pub use bisection::bisection;
pub use secant_method::secant_method;
pub use false_position_method::false_position;
pub use ridders_method::ridders_method;
pub use van_wijngaarden_dekker_brent::brent_method;
pub use newton_raphson::newton_raphson;
pub use polynomial_roots::polynomial_roots;
pub use polynomial_roots::polynomial_roots_complex;
pub use nonlinear_systems::SystemOptions;
pub use nonlinear_systems::SystemRootResult;
pub use nonlinear_systems::broyden_system;
pub use nonlinear_systems::newton_system;
pub use halley::halley;
pub use fixed_point::FixedPointMethod;
pub use fixed_point::fixed_point;
pub use minpack::JacobianFn;
pub use minpack::LmOptions;
pub use minpack::LmResult;
pub use minpack::leastsq;
pub use minpack::root_lm;
pub use newton_krylov::InnerSolver;
pub use newton_krylov::NewtonKrylovOptions;
pub use newton_krylov::NewtonKrylovResult;
pub use newton_krylov::newton_krylov;

Modules§

bisection
Bisection method.
bracketing
Root bracketing.
false_position_method
False position method (Illinois variant).
fixed_point
Fixed points x = g(x) by iteration accelerated with Steffensen’s (Aitken’s Δ²) method (SciPy’s optimize.fixed_point).
halley
Halley’s method (SciPy’s newton given fprime2), cubically convergent with the second derivative.
minpack
MINPACK’s Levenberg-Marquardt method (lmder and lmdif, Moré 1978), as SciPy’s optimize.leastsq and optimize.root(method="lm") call it: nonlinear least squares min ‖F(x)‖², F: ℝⁿ → ℝᵐ, m ≥ n, and so also the roots of square systems.
newton_krylov
Jacobian-free Newton-Krylov for large nonlinear systems F(x) = 0 (SciPy’s optimize.newton_krylov): each Newton correction is found by a Krylov solver that needs only products of the Jacobian with vectors, which are approximated by one difference of F each.
newton_raphson
Newton-Raphson method.
nonlinear_systems
Roots of nonlinear systems F(x) = 0, F: ℝⁿ → ℝⁿ.
polynomial_roots
Polynomial roots as the eigenvalues of the companion matrix: all (complex) roots, or the real ones, polished and with repeated roots merged.
ridders_method
Ridders’ method.
secant_method
Secant method.
van_wijngaarden_dekker_brent
Van Wijngaarden-Dekker-Brent method.