Function cosh

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

Creates a Function equal to the hyperbolic cosine of the passed Function

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

Example:

    let x = function::default();
    let cosh_of_x = cosh(x);
    assert_eq!(cosh_of_x.call(0.), 1.);