tanh

tanh(a: number) 🡒 number, autodiff pure function

Returns the hyperbolic tangent, given by:

$$\tanh(x) = \frac{e^x - e^{-x}} {e^x + e^{-x} }$$

show scalar "" with tanh(4.2)

The function tanh is properly defined for all input numbers.

See also