pub fn bisect<F: Fn(f64) -> f64>(
f: F,
a: f64,
b: f64,
tol: f64,
max_iter: usize,
) -> RootResultExpand 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.