Wednesday, January 1, 2025
Google search engine
HomeLanguagesJavascriptJavaScript Math.asinh() Method

JavaScript Math.asinh() Method

The 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 accepts a 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.

Below are some examples of the Math.asinh() function:

Example 1: This example shows the hyperbolic arc-sine when 2 is passed as a parameter.

JavaScript




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


Output:

Output : 1.4436354751788103

Example 2: This example shows the hyperbolic arc-sine when 0 is passed as a parameter.

JavaScript




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


Output:

Output : 0

Example 3: This example shows the hyperbolic arc-sine when 1 is passed as a parameter.

JavaScript




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


Output:

Output : 0.881373587019543

Example 4: This example shows the hyperbolic arc-sine when -1 is passed as a parameter.

JavaScript




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


Output:

Output : -0.881373587019543

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: 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
Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!

RELATED ARTICLES

Most Popular

Recent Comments