ES6 - Math.atan(x) Function
It returns the inverse tangent of x.
Syntax
Math.atan(x)
Parameter
- X − represents a number
Example
console.log("---Math.atan()---")
console.log("Math.atan(0): "+Math.atan(0))
console.log("Math.atan(Math.SQRT1_2): "+Math.atan(Math.SQRT1_2))
Output
---Math.atan()--- Math.atan(0): 0 Math.atan(Math.SQRT1_2): 0.6154797086703874
Advertisements