You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SolveEquation returns a root that is not a root when a coefficient nearly cancels #2448
The roots are verified inside the same 1e-12 scope, so the check cannot see the residuals.
Fix direction. Remove the override in its own PR, measured across the harnesses. Then a root whose residual provably excludes zero should make the solve decline, not shrink the set: dropping the bad root here would give {} for an equation that has roots.
The system half is #2446, where the same rounding returns a row that is not a solution. The fix there declines such a system.
#2456 is merged. The 1e-12 override is gone, and a root shown not to be one now leaves the equation unsolved rather than shrinking the set. Through SolveEquation: n = 20..60 are answered correctly, n = 70..120 with + are answered correctly, and the − rows from 70 up are declined. The system y^2 - 2, x^2 + (P - Q y) x - 3 now has its 4 rows at n = 20..60.
One row is still wrong: n = 160 with −. Its residual is about 1e-123, past the 100 digits the evaluation works to, so the check can't see it. That is downcasting, which v3 removes (#1019). I'm keeping this open for it, and moving it to 3.0 with #1019.
Activity
Solve one equation at the default zero tolerance, and decline where a…
Rafael-SOWNet commentedon Nov 15, 2026
#2456 is merged. The 1e-12 override is gone, and a root shown not to be one now leaves the equation unsolved rather than shrinking the set. Through
SolveEquation: n = 20..60 are answered correctly, n = 70..120 with+are answered correctly, and the−rows from 70 up are declined. The systemy^2 - 2, x^2 + (P - Q y) x - 3now has its 4 rows at n = 20..60.One row is still wrong: n = 160 with
−. Its residual is about 1e-123, past the 100 digits the evaluation works to, so the check can't see it. That is downcasting, which v3 removes (#1019). I'm keeping this open for it, and moving it to 3.0 with #1019.