What is Math.acosh() method in JavaScript?
Math.acosh()
is a JavaScript method that calculates the inverse hyperbolic cosine of a number. It was added to the Math object in ECMAScript 5.
The Math.acosh()
method takes a single number argument and returns the inverse hyperbolic cosine of that number. It can be used to calculate the angle in radians that is the arccosine of a number.
The Math.acosh()
method can be used to calculate the following expression:
The following code sample calculates the angle in radians that is the arccosine of a number using the Math.acosh()
method:
var num = 2.14;
var angleInRadians = Math.acosh(num);
console.log(angleInRadians);
The returned value is 1.5707963267948966
.
💡
Want to sponsor matcha.fyi? You can have your brand featured right here.
Let's connect and chat
about it.
Comments ()