acosintermediate// Inverse cosine β result in radians
Math.acos(1) // β 0
Math.acos(0) // β 1.5707... (Ο/2)Use Math.acos() to find the angle (in radians) whose cosine equals a given value.
Math.acos(-1) returns Math.PI (approximately 3.1416 radians).
Challenge: Verify that Math.acos(-1) equals Ο.