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
An equation between moduli is answered with points Newton's method finds on a curve #1573
"abs(x - 2) = abs(x - 3)".Solve("x") is { 2.4999… - 53.004…i, 2.4999… + 53.004…i, 2.4999… - 34.006…i, … }: a few points of the line Re x = 5/2, which is the whole solution set over the complex numbers. Over the reals the answer is { 5/2 } (Sullivan and Mackey's Prob 1.5.16), and setting the codomain to RR changes nothing.
"abs(x - 1) + abs(x - 2) = 5".Solve("x") is { -1, 3.9997… - 0.0345…i, 3.9997… + 0.0345…i, … }: the real root 4 is missing, and the rest are points of an ellipse.
Both sides are real for every complex x, so each equation is one real condition on two real unknowns, and its solutions form a curve. Newton's method, started from finitely many points, returns some of that curve as though it were the whole set. 2.5.0 answers the same.
#1019 should already specify that Newton's solver is to be a separate entry point compared to the analytical solver since the guarantees of the answers are too different - Newton's solver guarantees "some" solutions on "more" equations while the analytical solver guarantees "all" solutions on "less" equations. Moreover, numerical approximation is to be their own types separate from the normal exact node hierarchy.
It didn't say that yet. It's #1019's item 11 now: Solve answers what the analytical solvers establish, and Newton's method gets an entry point of its own that returns approximations typed as approximations.
#1578 is the 2.x fix for this issue. It keeps the fallback away from equations that are real for every complex x, and solves moduli by cases when the codomain is RR.
Activity
Happypig375 commentedon Sep 29, 2026
#1019 should already specify that Newton's solver is to be a separate entry point compared to the analytical solver since the guarantees of the answers are too different - Newton's solver guarantees "some" solutions on "more" equations while the analytical solver guarantees "all" solutions on "less" equations. Moreover, numerical approximation is to be their own types separate from the normal exact node hierarchy.
Rafael-SOWNet commentedon Sep 29, 2026
It didn't say that yet. It's #1019's item 11 now:
Solveanswers what the analytical solvers establish, and Newton's method gets an entry point of its own that returns approximations typed as approximations.#1578 is the 2.x fix for this issue. It keeps the fallback away from equations that are real for every complex
x, and solves moduli by cases when the codomain isRR.An equation between moduli is left unsolved over the complex numbers,…
Over the complex numbers, an equation in and out of a modulus is left…