Skip to main content

second_diff

Function second_diff 

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

Second derivative using central difference.

§Arguments

  • f - The function to differentiate
  • x - Point at which to compute the second derivative
  • h - Step size

§Returns

Approximate value of f’’(x)