Javascript - Math cosh() Method

The cosh() method returns the hyperbolic cosine of a number.

Description

The cosh() method returns the hyperbolic cosine of a number.

Syntax

Math.cosh(x)

Parameter Values

Parameter Require Description
x Required. A number

Return

A Number

Example

Return the hyperbolic cosine of a number:

Demo

//display the hyperbolic cosine value of 3.
console.log(Math.cosh(3));

Result