JavaScript | Math.asinh() function

The Math.asinh() function is an inbuit function in JavaScript which is used to get hyperbolic arc-sine of a number.
The hyperbolic arc-sine is known by many names such as hyperbolic inverse sine and asinh.It is inverse of the hyperbolic sine function i.e, The inverse hyperbolic sine of any value say x is the value y for which the hyperbolic cosine of y is x.

if y = asinh(x)
then x = sinh(y)

we have,
acosh(x)=ln(x+√ x2+1 )



Syntax:

Math.asinh(x)

    Parameters:

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

  • It returns the hyperbolic arc-sine of the given number.
  • Browser Support:

  • Here 2nd column contain int values which are version of the corresponding browser.
    Feature Basic support
    Chrome 38
    Edge Yes
    Firefox 25
    Internet Explorer No
    Opera 25
    Safari 8
    Android webview Yes
    Chrome for Android Yes
    Edge mobile Yes
    Firefox for Android 25
    Opera Android Yes
    iOS Safari 8
  • Examples for the above function are provided below.

    Example 1:

    Input : Math.asinh(2)
    Output : 1.4436354751788103
    

    In this example a positive integer “2” is passed as a parameter in the math.asinh() function.It returns the hyperbolic arc-sine of the passed parameter.

    Example 2:

    Input : Math.asinh(0)
    Output : 0
    

    In this example “0” is passed as a parameter in the math.asinh() function.It returns the hyperbolic arc-sine of the passed parameter.

    Example 3:


    Input : Math.asinh(-1)
    Output : -0.881373587019543
    

    In this example a negative integer “-1” is passed as a parameter in the math.asinh() function.It returns the hyperbolic arc-sine of the passed parameter.

      Codes for the above function are provided below.
      Let\’s see JavaScripts program:

      filter_none

      edit
      close

      play_arrow

      link
      brightness_4
      code

      // Here different values is being used for
      // getting hyperbolic sine function's values.
      console.log(Math.asinh(3));
      console.log(Math.asinh(22));
      console.log(Math.asinh(-1));
      console.log(Math.asinh(1));

      chevron_right

      
      

      Output:

       1.8184464592320668
       3.7847057630994327
      -0.881373587019543
       0.881373587019543
      

      Application:
      Whenever we need to get a get hyperbolic arc-sine of a number that time we can take help of Math.asinh() function in JavaScript.

      filter_none

      edit
      close

      play_arrow

      link
      brightness_4
      code

      // Here different values is being used for getting
      // hyperbolic cosine function's values.
      console.log(Math.asinh(5));
      console.log(Math.asinh(12));

      chevron_right

      
      

      Output:

       2.3124383412727525
       3.179785437699879
      


      My Personal Notes arrow_drop_up

      BERJAYA
      Check out this Author's contributed articles.

      If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

      Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.