A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh below:

Math.asinh() - JavaScript | MDN

Math.asinh()

Baseline Widely available

Math.asinh() は静的メソッドで、数値の双曲線逆正弦(ハイパーボリックアークサイン)を返します。

𝙼𝚊𝚝𝚑.𝚊𝚜𝚒𝚗𝚑 ( 𝚡 ) = 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} 試してみましょう
console.log(Math.asinh(1));
// Expected output: 0.881373587019543

console.log(Math.asinh(0));
// Expected output: 0

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

console.log(Math.asinh(2));
// Expected output: 1.4436354751788103
構文 引数 返値

x の双曲線逆正弦(ハイパーボリックアークサイン)です。

解説

asinh() は Math の静的メソッドであるため、生成した Math オブジェクトのメソッドとしてではなく、常に Math.asinh() として使用するようにしてください (Math はコンストラクターではありません)。

例 Math.asinh() の使用
Math.asinh(-Infinity); // -無限大
Math.asinh(-1); // -0.881373587019543
Math.asinh(-0); // -0
Math.asinh(0); // 0
Math.asinh(1); // 0.881373587019543
Math.asinh(Infinity); // Infinity
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4