JavaScript ACOSH

The JavaScript ACOSH function is one of the JavaScript Math function which is used to calculate the trigonometry hyperbolic Arc cosine for the specified expression. JavaScript Acosh() is also called as inverse hyperbolic cosine, Please refer JavaScript COS Function article to understand the Cosine Function.

In this article we will show you, How to use ACOSH() function in JavaScript Programming language with example.

Syntax of a JavaScript ACOSH Function

The basic syntax of the ACOSH Function in JavaScript Programming language is as shown below:

Math.acosh(number);

Number: It can be a number or a valid numerical expression for which you want to find hyperbolic Arc cosine value.

If the number argument is positive number, ACOSH() function will return the hyperbolic Arc Cosine value.

If the number argument is Negative number, JavaScript ACOSH() function will return NaN..

When the number argument is not a number, ACOSH() function will return NaN.

If the number argument is null value, ACOSH() function will return NaN.

JavaScript ACOSH Function Example

The JavaScript ACOSH Function allows you to find the trigonometry hyperbolic Arc cosine for the numeric values.

In this example, We are going to find the JavaScript hyperbolic Arc Cosine values of different data types and display the output

First, We used the ACOSH() Function directly on both the Positive integer and negative integer. If you observe the above screenshot, Acosh() function is working perfectly with Positive values and returns NaN for negative

Next, We used the ACOSH() Function on both the Positive and negative Decimal values. If you observe the above screenshot, JavaScript Acosh() function is working perfectly with Positive decimal values and returns NaN for negative Decimal