JS Built-ins
← Math69 / 215
Mathatanintermediate

Math.atan(Infinity) Equals PI/2

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

As x approaches ±∞, Math.atan(x) approaches Β±Ο€/2.

Challenge: Verify that Math.atan(Infinity) returns Ο€/2.

πŸ’‘ Hints (2)
  • β€’ Unlike asinh, atan(∞) is a finite value (Ο€/2)
  • β€’ The range of atan is the open interval (-Ο€/2, Ο€/2)