Function sin

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

Creates a Function equal to the sine of the passed Function

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

Example:

    let x = Function::default();
    let sin_of_x = sin(x);
    assert_eq!(sin_of_x.call(PI / 2.), 1.);