pub fn derivative_of(input_func: &Function) -> Function
Expand description
Returns the derivative of the passed Function.
Example:
let sin = Function::from("sin(x)");
let sin_derivative = derivative_of(&sin);
// sin(x)' = cos(x)
// cos(0) = 1
assert_eq!(sin_derivative.call(0.), 1.)