Skip to content

An equation between moduli is answered with points Newton's method finds on a curve #1573

Closed

Description

@Rafael-SOWNet

"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.

Activity

  1. added this to the 2.7.0 milestone on Sep 29, 2026
  2. Happypig375 commented on Sep 29, 2026

    @Happypig375
    Member

    #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.

  3. Rafael-SOWNet commented on Sep 29, 2026

    @Rafael-SOWNet
    MemberAuthor

    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.

  4. added a commit that references this issue on Sep 29, 2026
    850b00a
  5. modified the milestones: 2.7.0, 2.6.0 on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions