You will write three functions about the power of a point. A circle is stored as (g, f, c) for the equation .
The idea. The power of a point is the value of the left side at that point. The tangent length from an outside point is the square root of the power. The radical axis of two circles is , which is .
Your tasks.
power(circle, x, y). Return .tangent_length(circle, x, y). Return the square root of the power.radical_axis(c1, c2). Return the three numbers (A, B, C) of the line .Run your code once to unlock the worked solution.
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…