JS Built-ins
← Math68 / 215
Mathatanintermediate

Math.atan(-1) Equals -PI/4

πŸ“– 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)

Math.atan(-1) returns -Math.PI / 4. atan is an odd function.

Challenge: Verify the odd-function property of Math.atan().

πŸ’‘ Hints (2)
  • β€’ atan is an odd function: atan(-x) = -atan(x)
  • β€’ tan(-45Β°) = -1, so atan(-1) = -Ο€/4