Skip to content

An inequality has no solution where it has no value - #2321

Merged
Rafael-SOWNet merged 2 commits into
masterfrom
an-inequality-has-no-solution-where-it-has-no-value
Nov 1, 2026
Merged

Rafael-SOWNet merged 2 commits into
masterfrom
an-inequality-has-no-solution-where-it-has-no-value

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

The inequality solver reads a quotient after a factor shared by its numerator and denominator has cancelled. So its answer included the points where that factor is zero, at which the quotient is 0/0 and has no value. A pole that doesn't cancel was already outside the answer, since a quotient is solved as the product of its numerator and denominator.

The real zeros of every denominator in the expression as written are now taken out of the answer, for all four inequalities. Where a denominator's zeros can't be found as finitely many numbers, the answer is left as it was.

Solve("x") 2.6.0 and master now
(4x - x^3)/x > 0 (-2; 2) (-2; 2) \ { 0 }
x/x > 0 RR RR \ { 0 }
(-x + 2x^2 - x^3)/x <= 0 (-oo; +oo) (-oo; +oo) \ { 0 }
  • Found by a cross-check of 500 random rational inequalities, comparing each answer's membership with the inequality evaluated exactly in fractions at rational points. On this branch, no point inside an answer fails its inequality. The one equation-side finding is A quotient is zero where its numerator is and its denominator is not #2320.
  • Three of the new cases fail on master. The suite, the trio, F#, AOT and the eight harnesses pass. BREAKING-CHANGES.md has an entry.

No issue was filed.

🤖 Generated with Claude Code

The inequality solver reads a quotient after a factor its numerator and denominator share
has cancelled, so its answer had the points where that factor is zero, at which the
quotient is 0/0 and has no value: (4x - x^3)/x > 0 was (-2; 2), with 0 in it, and
x/x > 0 was RR. A pole that does not cancel was outside the answer already, a quotient
being solved as the product of its numerator and denominator.

The real zeros of every denominator in the expression as written are now taken out of the
answer, for each of the four inequalities. Where a denominator's zeros are not found as
finitely many numbers the answer is left as it was.

Found by a cross-check of rational inequalities against their exact values at rational
points, on which this leaves no point in an answer where the inequality fails.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Rafael-SOWNet Rafael-SOWNet added this to the 2.7.0 milestone Nov 1, 2026
@Rafael-SOWNet Rafael-SOWNet moved this from Todo to In review in AngouriMath Nov 1, 2026
@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.76%. Comparing base (46a2e03) to head (63088ee).

Files with missing lines Patch % Lines
...ontinuous/Solvers/EquationSolver/SolveStatement.cs 75.00% 3 Missing and 3 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2321   +/-   ##
=======================================
  Coverage   86.75%   86.76%           
=======================================
  Files         312      312           
  Lines       68338    68354   +16     
  Branches    19870    19876    +6     
=======================================
+ Hits        59289    59304   +15     
- Misses       4891     4892    +1     
  Partials     4158     4158           
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.30% <75.00%> (+<0.01%) ⬆️
fsharp 32.97% <ø> (ø)
interactive 40.72% <ø> (ø)

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

Files with missing lines Coverage Δ
...ontinuous/Solvers/EquationSolver/SolveStatement.cs 82.50% <75.00%> (-1.20%) ⬇️

... and 8 files with indirect coverage changes

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

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@Rafael-SOWNet
Rafael-SOWNet merged commit 43ed2f7 into master Nov 1, 2026
35 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in AngouriMath Nov 1, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the an-inequality-has-no-solution-where-it-has-no-value branch November 1, 2026 21:01
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