このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docsコミュニティーについてもっと知り、仲間になるにはこちらから。
Math.sinh()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
Math.sinh() 静的メソッドは、数値の双曲線正弦 (ハイパーボリックサイン) を返します。
In this article
試してみましょう
console.log(Math.sinh(0));// 予想される結果: 0console.log(Math.sinh(1));// 予想される結果: 1.1752011936438014console.log(Math.sinh(-1));// 予想される結果: -1.1752011936438014console.log(Math.sinh(2));// 予想される結果: 3.626860407847019構文
js
Math.sinh(x)引数
x数値です。
返値
x の双曲線正弦 (ハイパーボリックサイン) です。
解説
sinh() はMath の静的メソッドであるため、生成したMath オブジェクトのメソッドとしてではなく、常にMath.sinh() として使用するようにしてください (Math はコンストラクターではありません)。
例
>Using Math.sinh() の使用
js
Math.sinh(-Infinity); // -InfinityMath.sinh(-0); // -0Math.sinh(0); // 0Math.sinh(1); // 1.1752011936438014Math.sinh(Infinity); // Infinity仕様書
| Specification |
|---|
| ECMAScript® 2026 Language Specification> # sec-math.sinh> |