...

tanh

tanh(a: number) 🡒 number, const 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

User Contributed Notes
0 notes + add a note