You will write three small functions for angles: one that converts degrees to radians without math.radians, one that finds the quadrant of an angle, and one that returns the point of the unit circle at an angle.
The idea. Degrees times give radians. An angle is first brought into one turn with d % 360. The point at angle is , rounded to four decimals so a tiny rounding error does not show.
Your tasks.
to_radians, return the angle in radians, using math.pi.quadrant, return , , or , and when the angle is on an axis.unit_point, return (cosine, sine) of the angle, each rounded to decimals.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…