Using Math asinh() function to coding in Javascript/JS

This JavaScript tutorial explains how to use the math feature known as asinh() with syntax and examples.


In JavaScript, asinh() is a feature that is used to return the hyperbolic arc sine (also known as inverse hyperbolic sine) of a number. Because the asinh() characteristic is a static function of the Math object, it must be invoked via the placeholder object referred to as Math.


In JavaScript, the syntax for the asinh() characteristic is:


Parameters or Arguments

number The number used to calculate the hyperbolic arc sine.


The asinh() function returns the hyperbolic arc sine of a number.


Math is a placeholder object that includes mathematical functions and constants of which asinh() is one of these functions.


Let’s take a seem to be at an instance of how to use the asinh() characteristic in JavaScript.

For example:


In this example, we have invoked the asinh() characteristic the use of the Math class.

We have written the output of the asinh() function to the internet browser console log, for demonstration purposes, to exhibit what the asinh() feature returns.

The following will be output to the internet browser console log:


In this example, the first output to the console log again 0.881373587019543 which is the hyperbolic arc sine of 1. The second output to the console log back 1.1947632172871094 which is the arc sine of 1.5. The 1/3 output to the console log back -1.4436354751788103 which is the arc sine of -2.