Math.cosh

cosh — Returns the hyperbolic cosine of a number.

Description

Math.cosh(number number)

Parameters

Name Description Type Default Optional
number number No

Examples

Example #1 – cosh example
console.log(Math.cosh(0)); // 1 console.log(Math.cosh(0.5)); // 1.1276259652063807 console.log(Math.cosh(1)); // 1.5430806348152437 console.log(Math.cosh(-1)); // 1.5430806348152437 console.log(Math.cosh(3)); // 10.067661995777765

External references