pub fn secant(
f: &dyn Fn(f64) -> f64,
x0: f64,
x1: f64,
tol: f64,
max_iter: usize,
) -> Result<f64, String>Expand description
Secant method for scalar root finding.
A derivative-free variant of Newton’s method using finite difference approximation of the derivative from the two most recent iterates.