public static native double tanh (double x)

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:

Parameters:
x    The number whose hyperbolic tangent is to be returned.

Returns:  The hyperbolic tangent of x.

Since:  1.5