You will write a function that measures an angle from coordinates. You will use it to test the theorem about the centre and the rim. Then you will find which points see a diameter at a right angle.
The idea. The angle at the centre is double the angle at any point on the remaining part of the circle. The angle in a semicircle is . A point inside or outside the circle does not give .
Your tasks.
angle_at, return the angle in degrees, rounded to decimals.is_double, return True when the angle at the centre is double the angle , within degrees.on_circle to the names in points that see the diameter from to at a right angle.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…