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
Commit bfc7f5b
Browse filesBrowse the repository at this point in the historyBrowse files
Judge a root against the terms of an equation multiplied by a number (#2511)
A candidate, from a numerical search or from squaring or cubing an
equation, is kept where the residual is small next to the terms the
equation adds up to. A residual below an absolute 1e-6 was taken for
none, whatever the terms: x (2 - 4x + 2x^2)^(1/3) = 2 times 10^-12 kept
the two candidates cubing adds, which leave 3.46e-12 against terms of
2e-12. And an equation times a number is one product, read as one term
and so as its own scale: (sin(x) - x) 10^12 = 0 lost every root Newton
found, its residual being past the floor and the whole of itself.
The largest term now reads through products and quotients, and the
absolute bound is kept only where no sum was split, where the residual
has nothing to be compared with.
Solving 1400 generated equations as written and times 10^-12, 10^12:
at 10^-12, 129 answers differed from the unscaled ones (113 radical
equations with spurious roots, 16 inverse functions), now 0; at 10^12,
the 20 trigonometric equations that lost roots and the 11 inverse ones
that did now match. What differs at 10^12 is an OverflowException in
the logarithm solver and answers left unsolved. The cross-checks of the
unscaled equations against mpmath are unchanged.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments