Provide the hyperbolic tangent values for various numbers.
System. |
Definition and UsageThe tanh()
method computes the hyperbolic tangent of a number.
The hyperbolic tangent can be expressed as Math.sinh(number) / Math.cosh(number).
|
Parameter |
Description |
number |
Required. A number to find the hyperbolic tangent of. |
Returns: |
“A double value indicating the hyperbolic tangent of a number.” |
Java Version: |
1.5+ |