Math.asinh( ) In JavaScript

Math.asinh() function is used to return the hyperbolic arc-sine of a number. The asinh() is a static method of Math, therefore it is always used as Math.asinh(), rather than as a method of a math object created.

Syntax:

Math.asinh(value)

Parameter: This function accept single parameter value which is the number whose hyperbolic arc-sine you want to know.

Returns: It returns the hyperbolic arc-sine of the given number.

Examples:

Input  : Math.asinh(2)
Output : 1.4436354751788103

Input  : Math.asinh(0)
Output : 0

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

Codes for the Math.asinh() function are provided below:

  • Example 1:
    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <script type = "text/javascript">
     
       // 2 is passed as a parameter
       document.write("Output : " + Math.asinh(2));
    </script>

    chevron_right

    
    

    Output:

    Output : 1.4436354751788103
  • Example 2:
    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <script type = "text/javascript">
     
       // 0 is passed as a parameter
       document.write("Output : " + Math.asinh(0));
    </script>

    chevron_right

    
    

    Output:

    Output : 0
  • Example 3:
    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <script type = "text/javascript">
     
       // 1 is passed as a parameter
       document.write("Output : " + Math.asinh(1));
    </script>

    chevron_right

    
    

    Output:

    Output : 0.881373587019543
  • Example 4:
    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <script type = "text/javascript">
     
       // -1 is passed as a parameter
       document.write("Output : " + Math.asinh(-1));
    </script>

    chevron_right

    
    

    Output:

    Output : -0.881373587019543
  • Supported Browsers: The browsers supported by JavaScript Math.asinh( ) function are listed below:

    • Google Chrome 38.0
    • Internet Explorer 12.0
    • Firefox 25.0
    • Opera 25.0
    • Safari 8.0


    My Personal Notes arrow_drop_up

    I am a technology enthusiast who has a keen interest in programming I am pursuing Engineering in Computer Science from GEU, Dehradun I like to unwind by watching movies and English sitcomsI have a keen interest in music

    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.




    Article Tags :

    Be the First to upvote.


    Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.