Languages
[Edit]
DE

JavaScript - Math.cos() Methode - Beispiel

3 points
Created by:
Nikki
10520

Die Math.cos() Funktion gibt den Cosinus des angegebenen Winkels im Bogenmaß im Bereich von -1 bis +1.

Hinweis: 6.123233995736766e-17, -1.8369701987210297e-16 und 6.123233995736766e-17 sollen gleich 0 sein, sie liegen jedoch nicht an einem Rechengenauigkeitsfehler.


1. Dokumentation

Edit
SyntaxMath.cos(Zahl)
ParameterZahl - Ganzzahl oder Gleitkommazahl im Bogenmaß (Grundwert).
Ergebnis

Es gibt einen numerischen Wert zwischen -1 und +1, der den Kosinus des Winkels darstellt (primitiver Wert).

Beschreibungcos ist eine statische Methode, die nur einen Parameter akzeptiert und die Approximation des Ergebnisses der mathematischen Funktion cos(x) zurückgibt. 

2. Arbeit mit Radiant

Edit

3. Arbeit mit Graden

Edit

4. Ein umgekehrtes Konsolendiagramm - Beispiel

Edit

5. Canvas-Diagramm - Beispiel

Edit

Literaturverzeichnis

Edit
  1. Kosinus - Wikipedia

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

JavaScript - Objekt Math (DE)

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join