pub fn slope(
    interval_width: f64,
    kind: Option<DerivativeKind>,
    point: f64,
    mut value_fn: impl FnMut(f64) -> f64,
) -> f64 {
    try_slope::<Never, _>(interval_width, kind, point, |x| Ok(value_fn(x)))
        .unwrap_or_else(|e| match e {})
}
/// Compute a numerical derivative using finite differences.
Compute a numerical derivative using finite differences.
Compute a numerical derivative using finite differences .
pub fn slope(
    interval_width: f64,
    kind: Option<DerivativeKind>,
    point: f64,
    mut value_fn: impl FnMut(f64) -> f64,
) -> f64 {
    try_slope::<Never, _>(interval_width, kind, point, |x| Ok(value_fn(x)))
        .unwrap_or_else(|e| match e {})
}
pub fn slope ( interval_width : f64 , kind : Option < DerivativeKind > , point : f64 , mut value_fn : impl FnMut ( f64 ) -> f64 , ) -> f64 { try_slope :: < Never , _ > ( interval_width , kind , point , | x | Ok ( value_fn ( x ) ) ) . unwrap_or_else ( | e | match e { } ) }
Compute a numerical derivative using finite differences.
Compute a numerical derivative using finite differences .
interval_width
f64
kind
Option<DerivativeKind>
point
f64
value_fn
impl FnMut(f64) -> f64
interval_width
f64
kind
Option<DerivativeKind>
point
f64
value_fn
impl FnMut(f64) -> f64