Hyperbolic Tangent Calculator (tanh)
tanh(x) = sinh(x) / cosh(x). Bounded between −1 and 1. Used in neural networks.
Result
How to use this calculator
- Enter x.
- Read tanh(x) + companion sinh, cosh.
About this calculator
Hyperbolic tangent: tanh(x) = sinh(x)/cosh(x) = (eˣ − e⁻ˣ)/(eˣ + e⁻ˣ). Bounded in (−1, 1) — this is why early neural networks used tanh as an activation function (sigmoidal but symmetric around 0). Modern nets prefer ReLU for speed, but tanh remains useful in RNN gates. Also appears in special relativity (rapidity), heat transfer, and signal processing.
Frequently asked
Why is tanh used in ML?+
Saturation?+
Connection to logistic sigmoid?+
Rapidity in relativity?+
Inverse?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
sinh(x) = (eˣ − e⁻ˣ) / 2. Hyperbolic counterpart of sin.
cosh(x) = (eˣ + e⁻ˣ) / 2. Catenary curve: y = a · cosh(x/a).
Angle θ → (cos θ, sin θ) coordinates on the unit circle. Reference angle + quadrant.
log_b(x) for any base b > 0, b ≠ 1, x > 0. Common bases shown side-by-side.
b^x — the inverse of a logarithm. Given the log value and base, recover the original number.
Loan agreement between an individual lender and a business — used for friends-and-family financing, founder loans, and seed-stage capital.