Function sec

Source
pub fn sec(func: Function) -> Function
Expand description

Creates a Function equal to the secant of the passed Function

i.e f(x) ⟹ sec(f(x))

Example:

    let x = Function::default();
    let sec_of_x = sec(x);
    assert_eq!(sec_of_x.call(PI), -1.);