Syntax
| Parameter | Description |
|---|---|
| number | Parameter of the TANH function. |
Examples
TANH of 0
=TANH(0)
TANH of large number
=TANH(5)
Activation function
=TANH(A1*B1+C1)
Common Errors
Non-numeric input returns #VALUE!.
Tips
TANH always returns a value between -1 and 1, approaching these limits asymptotically. This makes it a natural normalizing function.
TANH is a popular activation function in neural networks. It's a scaled and shifted version of the logistic sigmoid: TANH(x) = 2×sigmoid(2x) - 1.
TANH saturates quickly: by x=3, it's already at 0.995. For practical purposes, TANH(x) ≈ 1 when x > 3 and ≈ -1 when x < -3.
Try TANH in Viztab
Import your data and use TANH with 370+ other formulas. No signup required.
Open Viztab