Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. JavaScript
  3. Reference
  4. Standard built-in objects
  5. Math
  6. asinh()

Math.asinh()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

TheMath.asinh() static method returns the inverse hyperbolic sine of a number. That is,

𝙼𝚊𝚝𝚑.𝚊𝚜𝚒𝚗𝚑(𝚡)=arsinh(x)=the unique y such that sinh(y)=x=ln(x+x2+1)\begin{aligned}\mathtt{\operatorname{Math.asinh}(x)} &= \operatorname{arsinh}(x) = \text{the unique } y \text{ such that } \sinh(y) = x \\&= \ln\left(x + \sqrt{x^2 + 1}\right)\end{aligned}

Try it

console.log(Math.asinh(1));// Expected output: 0.881373587019543console.log(Math.asinh(0));// Expected output: 0console.log(Math.asinh(-1));// Expected output: -0.881373587019543console.log(Math.asinh(2));// Expected output: 1.4436354751788103

Syntax

js
Math.asinh(x)

Parameters

x

A number.

Return value

The inverse hyperbolic sine ofx.

Description

Becauseasinh() is a static method ofMath, you always use it asMath.asinh(), rather than as a method of aMath object you created (Math is not a constructor).

Examples

Using Math.asinh()

js
Math.asinh(-Infinity); // -InfinityMath.asinh(-1); // -0.881373587019543Math.asinh(-0); // -0Math.asinh(0); // 0Math.asinh(1); // 0.881373587019543Math.asinh(Infinity); // Infinity

Specifications

Specification
ECMAScript® 2026 Language Specification
# sec-math.asinh

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp