The cosh() method returns the hyperbolic cosine of a number.
The cosh() method returns the hyperbolic cosine of a number.
Math.cosh(x)
Parameter | Require | Description |
---|---|---|
x | Required. | A number |
A Number
Return the hyperbolic cosine of a number:
//display the hyperbolic cosine value of 3.
console.log(Math.cosh(3));