Skip to main content

finite_diff_central

Function finite_diff_central 

Source
pub fn finite_diff_central<F: Fn(f64) -> f64>(f: F, x: f64, h: f64) -> f64
Expand description

First derivative of f at x using centered differences with step h.