Bug introduced in 13.0 or earlier and fixed in 13.1.0
Let me look at a circle case:
sol = SolveValues[{x1, y1} ∈ Circle[] && {x2, y2} ∈
Circle[{4, 5}, 2] &&
GeometricTest[{Circle[],
InfiniteLine[{{x1, y1}, {x2, y2}}]}, {"Tangent", {x1, y1}}] &&
GeometricTest[{Circle[{4, 5}, 2],
InfiniteLine[{{x1, y1}, {x2, y2}}]}, {"Tangent", {x2,
y2}}], {x1, y1, x2, y2}];
Graphics[{Circle[], Circle[{4, 5}, 2], Red,
Line /@ ArrayReshape[sol, {4, 2, 2}]}]
I can find the common tangent lines perfect. Then let change the circle into a ellipse:
sol = SolveValues[{x1, y1} ∈
Circle[{0, 0}, {1, 2}] && {x2, y2} ∈
Circle[{4, 5}, {2, 3}] &&
GeometricTest[{Circle[{0, 0}, {1, 2}],
InfiniteLine[{{x1, y1}, {x2, y2}}]}, {"Tangent", {x1, y1}}] &&
GeometricTest[{Circle[{4, 5}, {2, 3}],
InfiniteLine[{{x1, y1}, {x2, y2}}]}, {"Tangent", {x2,
y2}}], {x1, y1, x2, y2}];
Graphics[{Circle[{0, 0}, {1, 2}], Circle[{4, 5}, {2, 3}], Red,
InfiniteLine /@ ArrayReshape[sol, {4, 2, 2}]}]
Obviously what I found is no longer a tangent. Is this a bug about function GeometricTest
? Please help to check..