spinoso_math

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