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 ceaee37
Browse filesBrowse the repository at this point in the historyBrowse files
A system with a product equation is solved branch by branch
The eliminator solved x * y = 0 for y as 0, which is the answer only where x is not zero, and in a
system the triangularisation does not take nothing followed the branch where x is. Each row that
came back satisfied the system, so the answer read as all of the solutions:
x*y; sin(x) + y - 1 missing (0, 1)
(x - 1)*(y - 2); e^x - y missing (1, e)
x*e^y; x^2*y [[0, 0]], where every (0, t) is a solution
A system with a product in more than one of its unknowns is now solved once for each way of
choosing a factor of each such product, up to 64 systems, and its solutions are theirs together.
A product whose factors all mention the same unknowns is left alone, since solving it reads every
factor. A branch that answers null is taken to have no solutions, which is what Solve says of it.
Every row of the union is put back into the system as written, because a factor can be zero
where another is not defined: the branch x = 0 of x ln(y), x - y is (0, 0), where ln(0) is no
number. A row whose residual has no symbol left and is not a finite number is now dropped, on the
square path too, as a root of one equation is.
A branch can leave an unknown that no equation mentions, and the eliminator had no equation to
take it from and answered nothing. Such a system goes to the non-square solver, which makes the
unknown a parameter: x - 1, x^2 - 1 in x, y was null and is [[1, t_1]]. SolveSystem.TestTrigSystem4
pinned null for a - 1, b * 0, where b * 0 is zero for every b; it now expects the one family
(1, t_1).
Measured with the generated check from #2126 on 1190 square systems in x and y built from a known
integer solution: the known solution missing 22 times on master and 13 here, with no other
change in its findings and no wrong row on either. The 13 left are roots found by Newton's method,
one of several, and systems with abs.
Fixes#2128
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
| `MathS.Equations("sqrt(y) - x", "y - a").Solve("x", "y")` | `[[sqrt(a), (sqrt(a)) ^ 2], [-sqrt(a), (-sqrt(a)) ^ 2]]` | `null`: the second row is a solution only at `a = 0` |
62
62
63
+
### A system with a product equation is solved branch by branch
64
+
65
+
**Silent: solutions that were missing are answered.** `EquationSystem.Solve` eliminated `x * y = 0` for `y` as `0`,
66
+
which is the answer only where `x` is not zero, and lost the solutions where it is, in a system the triangularisation
67
+
does not take. A system with a product in more than one of its unknowns is now solved once for each factor, and its
68
+
solutions are theirs together, each put back into the system as written. A row is dropped where an equation, with the
69
+
row put in, is not a finite number, as `x ln(y)` is at `(0, 0)`. A square system with an unknown that no equation
70
+
mentions answers it as a parameter, as a short system does, where it was `null`
0 commit comments