Google Sheets
TANH function in Google Sheets
Returns the hyperbolic tangent of any real number.
=TANH(value)TANH syntax and parameters
One argument, one required.
- valuenumberRequired
Any real value to calculate the hyperbolic tangent of.
TANH examples
Formulas you'll actually reuse.
Hyperbolic tangent — squashes any input into −1…1:
=TANH(B2)Result
0.7616A soft 0–100 score from an unbounded input:
=TANH(B2 / 2) * 100Result
46.21
TANH in Excel
Same name — your formula ports as-is.
Try TANH in the playground
Edit the example — nothing to install.
Preloaded with the TANH formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- ABSReturns the absolute value of a number.MathExcel
- ACOSReturns the inverse cosine of a value, in radians.MathExcel
- ACOSHReturns the inverse hyperbolic cosine of a number.MathExcel
- ACOTReturns the inverse cotangent of a value, in radians. .MathExcel
- ACOTHReturns the inverse hyperbolic cotangent of a value, in radians. Must not be between -1 and 1, inclusive..MathExcel
- ASINReturns the inverse sine of a value, in radians.MathExcel