Math.acosh

acosh — Returns the hyperbolic arc-cosine of a number.

Description

Math.acosh(number number)

Parameters

Name Description Type Default Optional
number A number equal to or greater than 1. number No

Examples

Example #1 – acosh example
console.log(Math.acosh(1)); // 0 console.log(Math.acosh(4)); // 2.0634370688955608 console.log(Math.acosh(4.2)); // 2.113748230923511 console.log(Math.acosh(10)); // 2.993222846126381 console.log(Math.acosh(0)); // NaN

External references