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.

Description

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.

Syntax

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

Math.asinh(number);

Parameters or Arguments

number The number used to calculate the hyperbolic arc sine.

Returns

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

Note

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

Example

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

For example:

console.log(Math.asinh(1));
console.log(Math.asinh(1.5));
console.log(Math.asinh(-2));

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:

0.881373587019543
1.1947632172871094
-1.4436354751788103

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.