Skip to content

MathS.Equations reads a conjunction of equations as its equations - #2463

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
fix/equations-split-a-conjunction
Nov 15, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
fix/equations-split-a-conjunction

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

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") 2.7.0 package this branch
"x + y = 3 and x - y = 1" null [[2, 1]]
"x + y = 3 and x - y = 1", "x + 2 y = 4" null [[2, 1]]
"x^2 + y^2 = 25 and x - y = 1" null [[-3, -4], [4, 3]]
"x + y = 3 and x > 0" null null

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

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

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.01%. Comparing base (e4f84aa) to head (7b50342).

Files with missing lines Patch % Lines
Sources/AngouriMath/Core/EquationSystem.cs 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            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     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.54% <80.00%> (+0.01%) ⬆️
fsharp 32.97% <ø> (ø)
interactive 39.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
Sources/AngouriMath/Core/EquationSystem.cs 86.48% <80.00%> (+1.19%) ⬆️

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rafael-SOWNet
Rafael-SOWNet merged commit a622719 into master Nov 15, 2026
35 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the fix/equations-split-a-conjunction branch November 15, 2026 21:51
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant