SELF-Treffen in Mannheim vom 23.05. bis 25.05.2025
SELFHTML wird 30 Jahre alt! Das wollen wir gebührend feiern!
Weitere Informationen und eine Anmeldemöglichkeit gibt es in der Veranstaltungs-Ankündigung.
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