Repository navigation
MathS.Equations reads a conjunction of equations as its equations - #2463
Merged
Merged
Conversation
MathS.Equations passed a conjunction on as one equation and the system had no solution: x + y = 3 and x - y = 1 was null, where the two equations listed are [[2, 1]], and the same held for a conjunction listed beside another equation. A conjunction whose every conjunct is an equation is now read as those equations, through EquationSystem.EquationsOf, as MathS.SolveSystem reads one. A conjunction with any other conjunct is passed on as it was, so its answer is unchanged: solving the equations alone would answer a different question. Measured on the 2.7.0 package and this branch: the three conjunctions of equations go from null to [[2, 1]], [[2, 1]] and [[-3, -4], [4, 3]]; x + y = 3 and x > 0 stays null. Recorded in BREAKING-CHANGES.md. Part of #2450. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2463 +/- ##
==========================================
+ Coverage 87.00% 87.01% +0.01%
==========================================
Files 320 320
Lines 71216 71219 +3
Branches 20774 20775 +1
==========================================
+ Hits 61959 61969 +10
+ Misses 4967 4963 -4
+ Partials 4290 4287 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MathS.Equations passed a conjunction on as one equation and the system had
no solution: x + y = 3 and x - y = 1 was null, where the two equations
listed are [[2, 1]], and the same held for a conjunction listed beside
another equation. A conjunction whose every conjunct is an equation is now
read as those equations, through EquationSystem.EquationsOf, as
MathS.SolveSystem reads one. A conjunction with any other conjunct is passed
on as it was, so its answer is unchanged: solving the equations alone would
answer a different question.
Measured on the 2.7.0 package and this branch: the three conjunctions of
equations go from null to [[2, 1]], [[2, 1]] and [[-3, -4], [4, 3]]; x + y =
3 and x > 0 stays null. Recorded in BREAKING-CHANGES.md.
MathS.Equations(…).Solve("x", "y")"x + y = 3 and x - y = 1"[[2, 1]]"x + y = 3 and x - y = 1", "x + 2 y = 4"[[2, 1]]"x^2 + y^2 = 25 and x - y = 1"[[-3, -4], [4, 3]]"x + y = 3 and x > 0"The follow-up to #2459 named in its description; #2450 is closed by that PR.
Full check on this commit before the rebase onto e4f84aa (clean, different files): 20,010 unit tests, 0 failed; MCP 444, Terminal 69, F# 134, Interactive 19; AOT 78/78; BoundCheck 0 disagreements, RootCheck 596/596, CasBench 120/121 with 0 wrong, SimpSweep 10463/10463, RuleCheck clean, CanonCheck and Confluence at their baselines.
🤖 Generated with Claude Code