Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

javascript
math
asinh
communitycreator

# What is Math.asinh() in JavaScript? Arslan Bajwa

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

In JavaScript, Math is a built-in object that contains different methods and properties used to perform mathematical operations. It contains an asinh() function, which is used to compute the hyperbolic arc-sine of a specified number. This is also known as inverse hyperbolic sine.

## Syntax

Math.asinh(param);

## Parameter

• param: This is the number for which we want to compute the hyperbolic arc-sine. Its type is Number, and it is measured in radians.

Number in JavaScript is a 64-bit double-precision value which is the same as double in C# or Java.

## Return value

• Number: It returns the angle whose hyperbolic sine is equal to param. It is of the Number type.

• -Infinity: The function returns this if param is -Infinity.

• +Infinity: The function returns this if param is +Infinity.

Convert degrees to radians with the following formula:

• Degrees = Radians x 180 / π

where π = 3.14159, approximately

## Example

console.log("asinh(-1) = " + Math.asinh(-1));console.log("asinh(0.5) = " + Math.asinh(0.5));console.log("asinh(1) = " + Math.asinh(1));console.log("asinh(∞) = " + Math.asinh(Infinity));console.log("asinh(-∞) = " + Math.asinh(-Infinity));

RELATED TAGS

javascript
math
asinh
communitycreator

CONTRIBUTOR Arslan Bajwa

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring

Learn in-demand tech skills in half the time 