From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../reference/global_objects/math/sinh/index.html | 95 ++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 files/ja/web/javascript/reference/global_objects/math/sinh/index.html (limited to 'files/ja/web/javascript/reference/global_objects/math/sinh') diff --git a/files/ja/web/javascript/reference/global_objects/math/sinh/index.html b/files/ja/web/javascript/reference/global_objects/math/sinh/index.html new file mode 100644 index 0000000000..e01c47f217 --- /dev/null +++ b/files/ja/web/javascript/reference/global_objects/math/sinh/index.html @@ -0,0 +1,95 @@ +--- +title: Math.sinh() +slug: Web/JavaScript/Reference/Global_Objects/Math/sinh +tags: + - ECMAScript 2015 + - JavaScript + - Math + - Method + - Reference +translation_of: Web/JavaScript/Reference/Global_Objects/Math/sinh +--- +
{{JSRef}}
+ +

Math.sinh() 関数は、引数として与えた数の双曲線正弦 (ハイパーボリックサイン) を返します。これは{{jsxref("Math.E", "定数 e", "", 1)}} を使用して次のように表すことができます。

+ +

Math.sinh(x)=ex-e-x2\mathtt{\operatorname{Math.sinh(x)}} = \frac{e^x - e^{-x}}{2}

+ +
{{EmbedInteractiveExample("pages/js/math-sinh.html")}}
+ + + +

構文

+ +
Math.sinh(x)
+ +

引数

+ +
+
x
+
数値。
+
+ +

返値

+ +

指定された数値の双曲線正弦 (ハイパーボリックサイン) です。

+ +

解説

+ +

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

+ +

ポリフィル

+ +

これは {{jsxref("Math.exp()")}} 関数を使用して次のようにエミュレートできます。

+ +
Math.sinh = Math.sinh || function(x) {
+  return (Math.exp(x) - Math.exp(-x)) / 2;
+}
+
+ +

または {{jsxref("Math.exp()")}} 関数を一度だけ呼び出すようにすると、次のようになります。

+ +
Math.sinh = Math.sinh || function(x) {
+  var y = Math.exp(x);
+  return (y - 1 / y) / 2;
+}
+
+ +

+ +

Using Math.sinh() の使用

+ +
Math.sinh(0); // 0
+Math.sinh(1); // 1.1752011936438014
+
+ +

仕様書

+ + + + + + + + + + + + +
仕様書
{{SpecName('ESDraft', '#sec-math.sinh', 'Math.sinh')}}
+ +

ブラウザーの互換性

+ + + +

{{Compat("javascript.builtins.Math.sinh")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf