Skip to content
Related Articles
Open in App
Not now

Related Articles

JavaScript Math acosh() Method

Improve Article
Save Article
  • Last Updated : 02 Jan, 2023
Improve Article
Save Article

The Javascript Math.acosh() method is used to get the hyperbolic arc-cosine of a number. The hyperbolic arc-cosine is known by many names such as hyperbolic inverse cosine and acosh. It is the inverse of the hyperbolic cosine method i.e, The inverse hyperbolic cosine of any value say x is the value y for which the hyperbolic cosine of y is x.

if y = acosh(x) then x = cosh(y) For all x≥1, we have acosh(x)=ln(x+√ x2-1 )

Syntax:

Math.acosh(x)

Parameters: This method accepts a single parameter:

  • x: Here x is a number whose hyperbolic arc-sine is going to be calculated.

Example: Below is an example of the Math acosh( ) Method.

JavaScript




<script>
    // Here different values is being used for
    // getting hyperbolic cosine method's values.
    console.log(Math.acosh(2));
    console.log(Math.acosh(1));
    console.log(Math.acosh(3));
    console.log(Math.acosh(10));
</script>

Output:

1.3169578969248166
0
1.7627471740390859
2.993222846126381

Example: Here output 0 is the hyperbolic arc-cosine of numbers.

Javascript




<script>
    // Here different values is being used for
    // getting hyperbolic cosine method's values.
    console.log(Math.acosh(5));
    console.log(Math.acosh(11));
    console.log(Math.acosh(1.5));
    console.log(Math.acosh(0));
</script>

Output:

2.2924316695611777
3.088969904844603
0.9624236501192069
NaN

We have a complete list of Javascript Math Objects methods, to check those please go through this Javascript Math Object Complete reference article.

Supported Browsers:

  • Google Chrome 38.0
  • Internet Explorer 12.0
  • Firefox 25.0
  • Opera 8.0
  • Safari 25.0
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!