JavaScript/Objekte/Math/cosh
Aus SELFHTML-Wiki
JavaScript | Objekte | Math
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
- MDN: Math.cosh