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

Math.acosh()

Math.acosh(x) → number

Returns the hyperbolic arccosine of x.

Returns the hyperbolic arccosine of x. Returns NaN if x is less than 1.

Arguments

NameTypeRequiredDefaultDescription
x number optional — A number greater than or equal to 1.

Returns

number The hyperbolic arccosine of x.

Example

let a = Math.acosh(2); // 1.3169578969248166