Skip to main content

adaptive_central_difference

Function adaptive_central_difference 

Source
pub fn adaptive_central_difference<F>(
    function: F,
    x: f64,
) -> Result<DerivativeEstimate, AnalysisError>
where F: Fn(f64) -> f64,
Expand description

Central-difference derivative with adaptive step refinement until the error estimate converges; returns estimate + error bound.