pub fn newton_raphson( f: impl Fn(f64) -> f64, df: impl Fn(f64) -> f64, x: f64, tol: f64, max_iter: usize, ) -> Option<f64>
Newton-Raphson method.