Returns the hyperbolic tangent of a double
value.
The hyperbolic tangent of x is defined to be
(ex - e-x)/(ex + e-x),
in other words, sinh(x)/cosh(x). Note
that the absolute value of the exact tanh is always less than
1.
Special cases:
+1.0
.
-1.0
.
x | The number whose hyperbolic tangent is to be returned. |
x
.
Diagram: Math