Skip to main content

bisect

Function bisect 

Source
pub fn bisect<F: Fn(f64) -> f64>(
    f: F,
    a: f64,
    b: f64,
    tol: f64,
    max_iter: usize,
) -> RootResult
Expand description

Bisection root finding on interval [a, b].

Requires f(a) and f(b) to have opposite signs. Converges in at most max_iter iterations.