Repository navigation
Arms no real coefficients reach are left out of a symbolic quadratic's antiderivative - #1783
Merged
Rafael-SOWNet merged 2 commits intoOct 5, 2026
Conversation
…s antiderivative An integrand over a quadratic with symbols in it is answered by arms on its leading coefficient and the sign of its discriminant 4 a c - b^2, and two of them could not be reached: with no linear term and a number for the constant one, the discriminant is zero only where the leading coefficient is, which the first arm takes, and that arm divided by it; and with no constant term and a middle coefficient real as written, it is -b^2, never positive. Both are left out. Real as written only: under a root of the negative of a square the middle coefficient is imaginary and the discriminant positive. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…e-left-out-of-a-quadratic-denominators-antiderivative
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.
Part of #718.
An integrand over a quadratic with symbols in it is answered by arms on the quadratic's leading coefficient and on the sign of its discriminant
4 a c - b^2, and two of those arms could not be reached:b1af529d1/(1 + q x^2)1/(3 + q x^2)^21/(x (a + q x))1/(x (a + q x))^21/(x (a + b x^n))Each answer is differentiated back and compared with the integrand at six points.
What changes.
IntegrateRationalQuadraticandIntegrateOverPowerOfQuadraticleave out:4 a cthere, zero only whereais, which the arm before it takes -- and the arm left out divided bya;-b^2there. Real as written only: undersqrt(-(a + b x)^2)the middle coefficient issqrt(-b^2) a/b, and the discriminanta^2is positive;RootOfAPerfectSquareIntegralTestholds a row of that.An answer is up to a third shorter, and so is every answer built on one:
1/(x (a + b x^n))comes to1/(u (a + b u)).Tests:
QuadraticDenominatorArmsTest, four rows with three arms each, differentiated back with the parameter positive and negative.Measured first on Rubi's 1.1.2.2, 1.2.1.1 and 1.3.1, 1,300 problems, at the corpus's 5-second budget, against master
287c69a7, the branch's base:Measured then on the Rubi corpus against master
287c69a7:The harness counts no answer wrong in either. The 11 problems the two builds disagreed on are the 11 the sample lost here, each past the budget; run again one build at a time, both builds answer the same seven of them and run past the budget on the same four.
The suite passes on the commit measured,
99ae5eee, 14,826 tests, and the allocation gate passed. The head here,a2a3750b, merges masterb1af529d; the calculus and corpus tests pass on it, 4,280 tests, and the library builds fornetstandard2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura