Function rgsl::numerical_differentiation::deriv_backward [] [src]

pub fn deriv_backward<T>(
    f: function<T>,
    param: &mut T,
    x: f64,
    h: f64,
    result: &mut f64,
    abs_err: &mut f64
) -> Value

This function computes the numerical derivative of the function f at the point x using an adaptive backward difference algorithm with a step-size of h. The function is evaluated only at points less than x, and never at x itself. The derivative is returned in result and an estimate of its absolute error is returned in abserr. This function should be used if f(x) has a discontinuity at x, or is undefined for values greater than x.

This function is equivalent to calling gsl_deriv_forward with a negative step-size.