Skip to main content

Module tanh

Module tanh 

Source
Expand description

Implementations of Tanh and TanhAssign, traits for computing the hyperbolic tangent of Floats.

Functionsยง

primitive_float_tanh
Computes $\tanh x$, the hyperbolic tangent of a primitive float. The result is correctly rounded.
primitive_float_tanh_rational
Computes $\tanh x$, the hyperbolic tangent of a Rational, returning the result as a primitive float. The result is correctly rounded.