Function cos
Source pub fn cos(func: Function) -> Function
Expand description
Creates a Function equal to the cosine of the passed Function
i.e f(x) ⟹ cos(f(x))
Example:
let x = Function::default();
let cos_of_x = cos(x);
assert_eq!(cos_of_x.call(0.), 1.);