Function csc

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

Creates a Function equal to the cosecant of the passed Function

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

Example:

    let x = Function::default();
    let csc_of_x = csc(x);
    assert_eq!(csc_of_x.call(3./2. * PI), -1.);