pub trait Differentiable { fn grad(&self, x: f64) -> f64; }
Interface of a real 1D differentiable function
Compute the first derivative of this function at given point x
x