
In this article
TANH returns the hyperbolic tangent; also an activation function in neural networks.
Advertisement
Syntax
=TANH(number)
| Argument | What it means |
|---|---|
number |
Value (angles in radians) |
Examples
Example 1
=ROUND(TANH(A2),5)
Result: 0. See the worked example table below for more cases.
TANH in practice
Where you will use it
- Engineering and physics formulas
- Catenary cables, hyperbolic growth models
- Coursework
Worked example
| x | Formula | Result |
|---|---|---|
| 0 | =ROUND(TANH(A2),5) | 0 |
| 1 | =ROUND(TANH(A3),5) | 0.76159 |
| -2 | =ROUND(TANH(A4),5) | -0.96403 |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Degrees instead of radians | Wrap in RADIANS for angles |
| Out-of-range input | #NUM! or #DIV/0! |
Related functions
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
Advertisement
✨ Ask AI about this article
Stuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong