pub fn central_difference<F>(f: F, x: f64, h: f64) -> f64Expand description
Approximates the first derivative with a central difference.
This computes (f(x + h) - f(x - h)) / (2h). When h == 0.0, the
result may be infinite or NaN according to normal floating-point
behavior.