Math.cosh()
The Math.cosh()
function returns the hyperbolic cosine of a number.
Syntax
Math.cosh(x)
Parameters
x
- : A number.
Return value
The hyperbolic cosine of x
.
Description
Because cosh()
is a static method of Math
, you always use it as Math.cosh()
, rather than as a method of a Math
object you created (Math
is not a constructor).