HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Python Labs
  2. /Power, tangent and radical axis
MathematicsHardHigh School (11–12)Geometry › Circles

Power, tangent and radical axis

You will write three functions about the power of a point. A circle is stored as (g, f, c) for the equation x2+y2+2gx+2fy+c=0x^2 + y^2 + 2gx + 2fy + c = 0x2+y2+2gx+2fy+c=0.

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 S1−S2=0S_1 - S_2 = 0S1​−S2​=0, which is 2(g1−g2)x+2(f1−f2)y+(c1−c2)=02(g_1 - g_2)x + 2(f_1 - f_2)y + (c_1 - c_2) = 02(g1​−g2​)x+2(f1​−f2​)y+(c1​−c2​)=0.

Your tasks.

  1. Finish power(circle, x, y). Return x2+y2+2gx+2fy+cx^2 + y^2 + 2gx + 2fy + cx2+y2+2gx+2fy+c.
  2. Finish tangent_length(circle, x, y). Return the square root of the power.
  3. Finish radical_axis(c1, c2). Return the three numbers (A, B, C) of the line Ax+By+C=0Ax + By + C = 0Ax+By+C=0.

Run it first, just as it is. The checker at the end prints FAIL for each task. Then do the tasks one at a time, and run the program again after each one. A Hint appears under every check that still fails.

When every line says PASS, find the radical axis of the first two circles of the problem on the radical centre, (0, 0, -25) and (-8, 0, 55). Does it give x=5x = 5x=5?

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A worked solution

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 save
← All Labs
← The Euler line on coordinatesPtolemy and Brahmagupta on a circle →
More onGeometry › Circles

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Power of a point and the radical axisPower of a Point, Cyclic Quadrilaterals and Ptolemy

More labs on this topic

  1. Tangents and the circle insideMedium
  2. A line and a circle in codeEasy
  3. Points on a circleEasy
  4. A cyclic quadrilateral testEasy
Angles at the centre and at the rimMedium
All labs on this topic →