Function tanh

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

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

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

Example:

    let x = function::default();
    let tanh_of_x = tanh(x);
    assert_eq!(tanh_of_x.call(0.), 0.);