JavaScript Tutorial JavaScript Resources
Python Java C++ C C# PHP R SQL DS Algo InterviewQ

JavaScript - Math.sinh() Method



The JavaScript Math.sinh() method returns hyperbolic sine of a value. The hyperbolic sine of x is defined as:

sinh

where e is an Euler's number.

Syntax

Math.sinh(x);

Parameters

x Specify the value.

Return Value

Returns the hyperbolic sine of a value.

Example:

In the example below, Math.sinh() method is used to find out the hyperbolic sine of a value.

var txt;

txt = "Math.sinh(0) = " + Math.sinh(0) + "<br>";
txt = txt + "Math.sinh(2) = " + Math.sinh(2) + "<br>";
txt = txt + "Math.sinh(4) = " + Math.sinh(4) + "<br>";
txt = txt + "Math.sinh(-2) = " + Math.sinh(-2) + "<br>";
txt = txt + "Math.sinh(-4) = " + Math.sinh(-4) + "<br>";

The output (value of txt) after running above script will be:

Math.sinh(0) = 0
Math.sinh(2) = 3.626860407847019
Math.sinh(4) = 27.28991719712775
Math.sinh(-2) = -3.626860407847019
Math.sinh(-4) = -27.28991719712775

❮ JavaScript - Math Object

5