JS Built-ins
← Math202 / 215
Mathtanintermediate

Math.tan() β€” tan(Ο€/4) β‰ˆ 1

πŸ“– Usage Example
// Tangent of an angle in radians
Math.tan(0)            // β†’ 0
Math.tan(Math.PI / 4)  // β†’ 1

Use Math.tan() to compute the tangent of an angle in radians for trigonometry and slope calculations.

Math.tan()

Returns the tangent of a number (in radians).

Challenge: Verify that Math.tan(Math.PI/4) returns approximately 1.

πŸ’‘ Hints (1)
  • β€’ tan(Ο€/4) = 1 β€” at 45 degrees, the slope of the unit circle tangent line is 1