tanh
Hyperbolic tangent.
Syntax
Section titled “Syntax”Y = tanh(X)Description
Section titled “Description”Returns sinh(X) / cosh(X) — bounded between -1 and +1. Common as a smooth saturation function in neural networks.
Example
Section titled “Example”tanh(0) % 0