Skip to content

A quotient is zero where its numerator is and its denominator is not - #2320

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
a-quotient-is-zero-where-its-numerator-is
Nov 1, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
a-quotient-is-zero-where-its-numerator-is

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

The solver has a case for a product, which is zero where a factor is, and had none for a quotient, which went to the spellings. One of those took the substitution t = x^2 into the powers t^(3/2) and t^(5/2) and gave the result to Newton's method. A non-strict inequality takes the roots of its equation, so its answer was wrong with it.

N/D = 0 is now N = 0 less the roots at which D is zero, where 0/0 has no value. That applies only where N's roots are finitely many numbers, each of which can be put into D. A family of roots, as sin(x)/x = 0 has, still goes to the routes after, which answer it as before.

2.6.0 master now
(18x^2 - 3x^3 - 4x^4 + x^5)/(9x^2 - 6x^4 + x^6) = 0 { 3 } three near-copies of 3, and 3 { -2, 3 }
… >= 0 with that numerator and denominator times 6 and 3 has -3, where the quotient is negative, and lacks -2 lacks -2 [-2; -sqrt(3)) \/ (-sqrt(3); 0) \/ (0; sqrt(3)) \/ (sqrt(3); +oo)
(x^2 - 1)/(x - 1) = 0 { -1 } { -1 } { -1 }
  • Found by a new cross-check of 500 random rational inequalities. Each answer's membership is compared with the inequality evaluated exactly in fractions, at random rational points, at the rational roots themselves, and at points 1e-7 either side of every real root. This was the one equation-side finding. The other, poles lost where a factor cancels, is a separate PR.
  • 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 solver had a case for a product, which is zero where a factor is, and none for a
quotient, which came to the spellings. One of those took a substitution t = x^2 into the
powers t^(3/2) and t^(5/2) and gave it to Newton's method, so
(18x^2 - 3x^3 - 4x^4 + x^5)/(9x^2 - 6x^4 + x^6) = 0 was answered with three near-copies of 3
beside it and without -2 (2.6.0 answered { 3 }). A non-strict inequality takes the roots of
its equation, and the one with it for its = 0 part lost -2 as well, 2.6.0 having had -3,
where the quotient is negative, in its place.

N/D = 0 is now N = 0, less the roots at which D is zero, where 0/0 has no value: (x^2 - 1)/(x - 1)
= 0 is { -1 }. Only where N's roots are finitely many numbers, each put into D; a family of
roots, as sin(x)/x = 0 has, is left to the routes after, which answer it as before.

Found by a cross-check of rational inequalities against their exact values at rational points.

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 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.74%. Comparing base (a290f93) to head (c837b0d).

Files with missing lines Patch % Lines
...Solvers/EquationSolver/AnalyticalEquationSolver.cs 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2320      +/-   ##
==========================================
- Coverage   86.74%   86.74%   -0.01%     
==========================================
  Files         312      312              
  Lines       68333    68338       +5     
  Branches    19868    19870       +2     
==========================================
+ Hits        59273    59277       +4     
- Misses       4902     4903       +1     
  Partials     4158     4158              
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.28% <80.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 Δ
...Solvers/EquationSolver/AnalyticalEquationSolver.cs 95.89% <80.00%> (-0.57%) ⬇️

... and 10 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 46a2e03 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 a-quotient-is-zero-where-its-numerator-is branch November 1, 2026 20:20
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