Tanh
Syntax:¶
TANH(number)
- number: The numeric value for which you want to calculate the hyperbolic tangent.
Description:¶
The TANH function returns the hyperbolic tangent of a given number. The formula for the hyperbolic tangent is defined
as:
TANH(number) = (e^number - e^(-number)) / (e^number + e^(-number))
Where e is the base of the natural logarithm (approximately 2.71828182845905). The result of TANH is a value between
-1 and 1.
Examples:¶
=TANH(0)would return0, as the hyperbolic tangent of0is0.=TANH(1)would return approximately0.761594, based on the formula.=TANH(-1)would return approximately-0.761594, as negative inputs result in negative outputs within the same range.=TANH(2)would return approximately0.964028, because the hyperbolic tangent approaches1as the input grows larger.=TANH(-2)would return approximately-0.964028, as the hyperbolic tangent approaches-1for large negative inputs.
Notes:¶
- The
TANHfunction is often used in mathematical, engineering, or scientific calculations involving hyperbolic functions. - The hyperbolic tangent is analogous to the
TAN(tangent) function but relates to hyperbolic geometry. - As the input moves towards infinity in the positive or negative direction, the result of
TANHconverges towards1or-1, respectively. - The function accepts both positive and negative numeric inputs, including zero.