pub fn secant(cfg: &Solver1d, f: impl Fn(f64) -> f64, x0: f64, x1: f64) -> Root
Secant iteration from two starting points.