Math.cosh()

Math.cosh(x) → number

Returns the hyperbolic cosine of x.

Returns the hyperbolic cosine of x.

Arguments

NameTypeRequiredDefaultDescription
x number optional — A number.

Returns

number The hyperbolic cosine of x.

Example

let c = Math.cosh(1); // 1.5430806348152437