Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. JavaScript
  3. JavaScript-Referenz
  4. Eingebaute Standardobjekte
  5. Math
  6. sinh()

Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten.Erfahre mehr über dieses Experiment.

View in EnglishAlways switch to English

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 Juli 2015.

DieMath.sinh() statische Methode gibt den hyperbolischen Sinus einer Zahl zurück. Das heißt,

𝙼𝚊𝚝𝚑.𝚜𝚒𝚗𝚑(𝚡)=sinh(x)=exex2\mathtt{\operatorname{Math.sinh}(x)}} = \sinh(x) = \frac{\mathrm{e}^x - \mathrm{e}^{-x}}{2}

Probieren Sie es aus

console.log(Math.sinh(0));// Expected output: 0console.log(Math.sinh(1));// Expected output: 1.1752011936438014console.log(Math.sinh(-1));// Expected output: -1.1752011936438014console.log(Math.sinh(2));// Expected output: 3.626860407847019

Syntax

js
Math.sinh(x)

Parameter

x

Eine Zahl.

Rückgabewert

Der hyperbolische Sinus vonx.

Beschreibung

Dasinh() eine statische Methode vonMath ist, verwenden Sie sie immer alsMath.sinh() und nicht als Methode eines von Ihnen erstelltenMath Objekts (Math ist kein Konstruktorkonstruktor).

Beispiele

Verwendung von Math.sinh()

js
Math.sinh(-Infinity); // -InfinityMath.sinh(-0); // -0Math.sinh(0); // 0Math.sinh(1); // 1.1752011936438014Math.sinh(Infinity); // Infinity

Spezifikationen

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

Browser-Kompatibilität

Siehe auch

Help improve MDN

Learn how to contribute Diese Seite wurde automatisch aus dem Englischen übersetzt.

[8]ページ先頭

©2009-2026 Movatter.jp