JavaScript/Objekte/Math/cosh

Aus SELFHTML-Wiki
JavaScript‎ | Objekte‎ | Math
Version vom 4. Juli 2024, 21:51 Uhr von RolfBot (Diskussion | Beiträge) (top: replaced: <source lang="javascript"> → <syntaxhighlight lang="javascript">, </source> → </syntaxhighlight>)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Die Methoden cosh(), sinh() und tanh() liefern den hyperbolischen Kosinus, Sinus, bzw. Tangens einer Zahl.

Der Parameter ist eine Zahl, für cosh(0) = 1.

Beispiel ansehen ...
console.log(Math.cosh(0));
// Expected output: 1
console.log(Math.cosh(1));
// Expected output: 1.543080634815244 (approximately)
console.log(Math.cosh(-1));
// Expected output: 1.543080634815244 (approximately)
console.log(Math.cosh(2));
// Expected output: 3.7621956910836314


Siehe auch

Vergleiche: acosh() , asinh() und atanh()

Weblinks


Abgerufen am 5.09.2025
von "http://wiki.selfhtml.org/wiki/JavaScript/Objekte/Math/cosh"