Function spinoso_math::tanh[][src]

#[must_use]pub fn tanh(value: f64) -> f64

Computes the hyperbolic tangent of the given value (expressed in radians).

Domain: (-INFINITY, INFINITY)

Codomain: (-1, 1)

Examples

use spinoso_math as math;
assert_eq!(math::tanh(0.0), 0.0);