Function spinoso_math::tanh

source ·
pub fn tanh(value: f64) -> f64
Expand description

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);