Provide the hyperbolic cosine values for various numbers.
System. |
The cosh() method computes the hyperbolic cosine of a number.
It’s equivalent to (Math.exp(number) + Math.exp(-number)) / 2.
public |
Parameter |
Description |
number |
Necessary: A number for which to determine the hyperbolic cosine. |
Returns |
A double value indicating the hyperbolic cosine of a number. |
Java Version |
1.5+ |