JavaScript atan() methode
- Previous page asinh()
- Next page atan2()
- Go back to the previous level JavaScript Math Referentie Handboek
Definitie en gebruik
atan()
De methode retourneert de arctangent van een getal, de retourwaarde is een hoek in radianen tussen -PI/2 en PI/2.
Syntaxis
Math.atan(x)
Parameterwaarde
Parameter | Beschrijving |
---|---|
x | Verplicht. Getal. |
Technische details
Retourwaarde: | Getal, van -PI/2 tot PI/2, als de waarde leeg is, wordt NaN geretourneerd. |
---|---|
JavaScript versie: | ECMAScript 1 |
Browser support
Math.atan()
Is an ES1 feature (JavaScript 1999). All browsers fully support it:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Support | Support | Support | Support | Support | Support |
Related pages
Tutorial:JavaScript mathematics
- Previous page asinh()
- Next page atan2()
- Go back to the previous level JavaScript Math Referentie Handboek