Talk:Line circle intersection: Difference between revisions

Content added Content deleted
Line 19: Line 19:
The task currently references https://mathworld.wolfram.com/Circle-LineIntersection.html which (for now, at least) seems to be incorrect.
The task currently references https://mathworld.wolfram.com/Circle-LineIntersection.html which (for now, at least) seems to be incorrect.


Consider, for example, a circle of radius 1 at the origin and a line extending through the origin and the point x=1, y=1. Here, we expect intersections at x and y equal to the square root of 2 and the negative of the square root of 2. Ignoring the negative x and y results for simplicity, and working through the wolfram approach:
Consider, for example, a circle of radius 1 at the origin and a line extending through the origin and the point x=1, y=1. Here, we expect intersections at <math>x=\pm \sqrt{2},\;y=\pm\sqrt{2}</math>.

Ignoring the negative x and y results for simplicity, and working through the wolfram approach:


<math>r = 1,\; x_1=0,\; y_1=0,\; x_2=1,\; y_2=1</math>
<math>r = 1,\; x_1=0,\; y_1=0,\; x_2=1,\; y_2=1</math>