Parameters or Arguments
number The variety used to calculate the hyperbolic arc cosine. The wide variety have to be a value greater than or equal to 1.
The acosh() function returns the hyperbolic arc cosine of a number.
If the variety is much less than 1, the acosh() feature will return NaN.
Math is a placeholder object that incorporates mathematical features and constants of which acosh() is one of these functions.
console.log(Math.acosh(1)); console.log(Math.acosh(1.5)); console.log(Math.acosh(0.999));
In this example, we have invoked the acosh() function the use of the Math class.
We have written the output of the acosh() function to the net browser console log, for demonstration purposes, to exhibit what the acosh() function returns.
The following will be output to the internet browser console log:
0 0.9624236501192069 NaN
In this example, the first output to the console log back 0 which is the hyperbolic arc cosine of 1. The second output to the console log returned 0.9624236501192069 which is the arc cosine of 1.5. The 1/3 output to the console log returned NaN on account that the wide variety was less than 1.