Function tan
Source pub fn tan(func: Function) -> Function
Expand description
Creates a Function equal to the tangent of the passed Function
i.e f(x) ⟹ tan(f(x))
Example:
let x = Function::default();
let tan_of_x = tan(x);
assert_eq!(tan_of_x.call(PI / 4.), 1.);