Repository navigation
Commit 2aab628
Drop a radical root in back-substitution only where an interval shows it fails (#2521)
The Groebner back-substitution puts each root of the last equation into the others and drops a
root that leaves one a nonzero number. A root with a radical in it, or an equation holding one
assigned before, is put to a number by evaluating, and where the terms are large they cancel to
what their hundred digits leave, which downcasting reads as a rational: the root
(-4 10^24 - sqrt(28 10^48)) / 6 of its own quartic, with terms near 1e96, left 13/10000. So the
system for the parts of x in an equation in a modulus with roots near 10^23 or more dropped its
real roots, and 1 - 2x + x|-2 - 3x| = 0 with x written as 10^-24 x was { }. An equation that is
a polynomial over Q at the root is still decided exactly; one that is not is decided by an
interval, and a root it does not show to fail goes on.
Near 10^30 InnerSimplified itself evaluates the radicals into decimals past its digits and
downcasts them to integers, so the narrowed equations are wrong before this check is reached,
and roots are still lost there, as on master.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 94d6f2c commit 2aab628
3 files changed
Lines changed: 73 additions & 0 deletions
File tree
- Sources
- AngouriMath/Functions/Algebra/Groebner
- Tests/UnitTests/Algebra/SolveTest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
76 | 91 | | |
77 | 92 | | |
78 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
218 | 231 | | |
219 | 232 | | |
220 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments