J

JavaScript Handbook

Clean • Professional

Hyperbolic Methods

1 minute

Hyperbolic Methods

These methods handle hyperbolic functions and their inverses.

sinh(x)

Returns the hyperbolic sine of x.

Example:

console.log(Math.sinh(0)); // 0
console.log(Math.sinh(1)); // 1.1752011936438014

cosh(x)

Returns the hyperbolic cosine of x.

Example:

console.log(Math.cosh(0)); // 1

tanh(x)

Returns the hyperbolic tangent of x.

Example:

console.log(Math.tanh(0)); // 0

asinh(x)

Returns the inverse hyperbolic sine of x.

Example:

console.log(Math.asinh(0)); // 0

acosh(x)

Returns the inverse hyperbolic cosine of x, for x >= 1.

Example:

console.log(Math.acosh(1)); // 0

atanh(x)

Returns the inverse hyperbolic tangent of x, for -1 <= x <= 1.

Example:

console.log(Math.atanh(0)); // 0

 

Article 0 of 0