You will write functions that find the radical axis of two circles, test whether two circles are orthogonal, and find the radical centre of three circles. A circle is given as a triple for .
The idea. The radical axis is . Two circles are orthogonal when . The radical centre solves two radical axes together.
Your tasks.
radical_axis(s1, s2). Return the three numbers (a, b, c) of the line .orthogonal(s1, s2). Return True if the circles cut at right angles. Compare with a small tolerance.radical_centre(s1, s2, s3). Return the point where the three radical axes meet, or None if the axes of the first two pairs are parallel.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…