📦 Archived documentation: r1 (committed 2026-10-07) View current documentation →

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