Skip to main content

complex_step_derivative

Function complex_step_derivative 

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

Complex-step derivative Im(f(x+ih))/h — machine-precision accuracy for real-analytic function.