Example 1 — Basic Use
Pass a number that is 1 or greater.
console.log(Math.acosh(1)); // 0
console.log(Math.acosh(2)); // 1.3169578969248166
console.log(Math.acosh(10)); // 2.993222846126381
console.log(Math.acosh(0.5)); // NaN How It Works
- Start at 1.
Math.acosh(1)is0. This is the smallest valid input. - Grows slowly. The result grows slowly as
xgets bigger. - Below 1.
0.5is not valid, so the result isNaN.

