ES6 - Math.atan(x) Function


Advertisements


It returns the inverse tangent of x.

Syntax

Math.atan(x)       

Parameter

  • X1 − 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       

es6_math.htm

Advertisements