JS Built-ins
← Math66 / 215
Mathatanbeginner

Math.atan(0) Equals Zero

πŸ“– Usage Example
// Inverse tangent β€” result in radians
Math.atan(1)   // β†’ 0.7853... (Ο€/4)
Math.atan(0)   // β†’ 0

Use Math.atan() to find the angle (in radians) whose tangent equals a given value.

Math.atan(x)

Returns the arctangent (in radians) of a number. Math.atan(0) returns 0.

Challenge: Use Math.atan() and verify its result for input 0.

πŸ’‘ Hints (2)
  • β€’ tan(0) = 0, so atan(0) = 0
  • β€’ The range of atan is (-Ο€/2, Ο€/2)