Repository navigation
A polynomial over a power of a quadratic with a sum of symbols in it is reduced - #1712
Merged
Merged
Conversation
…is reduced The table's reduction for N(x)/(a x^2 + b x + c)^n divides the numerator by the quadratic a power at a time and computes the remainder as N - quotient * Q. The division writes the quotient's coefficients simplified and Q is subtracted as it is written, so with a sum of symbols among Q's coefficients the terms the division took away came back as two spellings of one value, the remainder read as of the second degree, and the reduction declined: x^4/(1/(-b + a) + x^2)^3 where x^4/(1/(a - b) + x^2)^3 is answered, and x^4/(d x^2 + b c - a d)^5. Where the computed remainder is not linear, the remainder the division reports over the divisor is taken. And an improper fraction, which the recursion declines once it reaches the first power, is declined before the first division rather than after the last: with symbols in the quadratic each division simplifies every coefficient. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
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.
The table's reduction for
N(x)/(a x^2 + b x + c)^ndeclined whenever a sum of symbols stood among the quadratic's coefficients, so that how a coefficient was written decided whether an integral was answered:x^4/(1/(-b + a) + x^2)^3was declined wherex^4/(1/(a - b) + x^2)^3is answered, and(1 - b x^2)^3/(c (1 - b x^2) + a d x^2)^3was declined after 42 s where the same integrand with the two terms of its denominator the other way round is answered in 4.9c2509d8x^4/(1/(-b + a) + x^2)^3(1 - b x^2)^3/(c (1 - b x^2) + a d x^2)^3x^4/(d x^2 + b c - a d)^5x^6/(d x^2 + b c - a d)^4(a + b x)^(5/2)/(c + d x)^4(a + b x)^(3/2)/(c + d x)^5The last two are what
t = sqrt(a + b x)makes of Rubi's 1.1.1.2(a + b x)^(m/2)/(c + d x)^n.What changes. The reduction divides the numerator by the quadratic a power at a time and computed the remainder as
N - q Q. The division writes the quotient's coefficients simplified andQwas subtracted as it is written, so the terms the division had taken away came back as the difference of two spellings of one value,(1/(a - b) - 1/(-b + a)) x^2, the remainder read as of the second degree, and the reduction stopped. Where the computed remainder is not linear, the remainder the division reports is taken; it has no such term. And an improper fraction, which the recursion declines once it comes down to the first power, is declined before the first division rather than after the last: with symbols in the quadratic each division simplifies every coefficient.Tests:
SymbolicCoefficientIntegralsTest.APolynomialOverAPowerOfAQuadraticWithASumOfSymbolsInIt, six rows, each differentiated back with the symbols pinned.Measured first on the 356 corpus problems of 1.1.2.3
(a + b x^2)^p (c + d x^2)^qand every eighth of 1.1.1.2(a + b x)^m (c + d x)^n, at the corpus's 5-second budget, against master9c2509d8, the branch's base:Measured then on the Rubi corpus against master
9c2509d8:No answer is wrong on either build. The 11 problems the two builds disagreed on, run again one build at a time, are 6 answered here and 3 on master. Two of master's three are answered here too; the third,
1/((a + b x^2)^2 (c + d x^2)^3), took 22 s on master and timed out here, and unbudgeted both builds answer it, in 20 s on master and 21 s here.The suite passes on the commit measured,
51cc0191, 14,565 tests, and so does the allocation gate.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura