Skip to main content

secant_method

Function secant_method 

Source
pub fn secant_method<F>(
    f: F,
    x0: f64,
    x1: f64,
    tol: f64,
    max_iter: usize,
) -> RootResult
where F: Fn(f64) -> f64,
Expand description

Secant method for root finding (no derivative required).