JavaScript Math acosh() Method

Below is the example of the Math acosh( ) Method.

  • Example:
    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <script>
        // Here different values is being used for
        // getting hyperbolic cosine method's values.
        document.write(Math.acosh(2)+"<br>");
        document.write(Math.acosh(1)+"<br>");
        document.write(Math.acosh(3)+"<br>");
        document.write(Math.acosh(10));
    </script>

    chevron_right

    
    

  • Output:
    1.3169578969248166
    0
    1.7627471740390859
    2.993222846126381
    

The Math.acosh() method is used to get hyperbolic arc-cosine of a number. The hyperbolic arc-cosine is known with many names such as hyperbolic inverse cosine and acosh. It is 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)