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