JavaScript/Objekte/Math/cosh

Aus SELFHTML-Wiki
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 von „http://wiki.selfhtml.org/index.php?title=JavaScript/Objekte/Math/cosh&oldid=97739"