atanintermediate// Inverse tangent β result in radians
Math.atan(1) // β 0.7853... (Ο/4)
Math.atan(0) // β 0Use Math.atan() to find the angle (in radians) whose tangent equals a given value.
Math.atan(1) returns Math.PI / 4 (approximately 0.7854 radians or 45Β°).
Challenge: Verify that Math.atan(1) equals Ο/4.