Repository navigation
Integrate a polynomial beside a function of a shifted linear in that linear - #2087
Merged
Rafael-SOWNet merged 1 commit intoOct 23, 2026
Merged
Conversation
…linear A polynomial beside a function of one shifted linear a + b x that parts cannot reach -- a power that is not whole of something holding a logarithm of it, or an exponential of a function of it that is not linear -- is written in u = a + b x, as the rule for error functions of a shifted linear writes its integrand. The polynomial is one in u there, and each of its terms beside the function is a gamma function: x (a + b ln(c (d + e x)))^p becomes u (a + b ln(c u))^p and the offset's own term, and x^2 f^(c (a + b x)^3) becomes powers of u beside f^(c u^3). In u the offset is zero, and the rule declines there. The function is found by its shape before any factor is read as a polynomial, which expands it: asked of every product the algebraic files are, the reading the other way round was five per cent of the corpus's time. Rubi's suite on the harness that reads GAMMA, against master 3dbae24: 48,875 -> 48,907 of 49,052, 0 wrong, no solved row lost, no row to a timeout, no answer's allocation grown; time per stream 0.97 to 1.01 of master's. The gains are 18 in 3.4, 9 in 2.3 and 5 in 3.3. Three definite integrals agree with quadrature to 25 digits. Part of #2075. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This was referenced Oct 23, 2026
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.
Integrates a polynomial beside a function of one shifted linear
a + b xthat parts cannot reach, by writing it inu = a + b x. Part of #2075.The shapes:
x (a + b ln(c (d + e x)))^p;x^2 f^(c (a + b x)^3).In
uthe polynomial is one inu, and each of its terms beside the function is a gamma function of #2083's rules. This is the substitutionSolveAPolynomialBesideErrorFunctionsOfAShiftedLinearalready makes for error functions. Inuthe offset is zero, so the rule declines there and cannot recurse on its own output.ux (a + b ln(c (d + e x)))^p(u - d) (a + b ln(c u))^p / e^2x (a + b ln(c (d + e sqrt(x))))^pux^2 f^(c (a + b x)^3)((u - a)/b)^2 f^(c u^3) / bThe function is found by its shape first, before any factor is read as a polynomial, which expands it. The first version read the other way round, and asked of every product the algebraic files are, it was 5 to 10% of the corpus's time with no allocation to show for it. Read this way, time per stream is 0.97 to 1.01 of master's.
Measured on Rubi's suite, read with the harness that maps
GAMMA, against master3dbae246, the whole corpus each side:The gains are 18 in 3.4, 9 in 2.3 and 5 in 3.3. No answer's allocation grew.
By value:
integral(x*(1/3 + 2*ln(3/2*(1 + 2*x)))^(5/2), x, 1, 2)47.0187310513846589616701…integral((1/3 + 2*ln(3/2*(1 + 2*sqrt(x))))^(5/2), x, 1, 2)24.8155926461197117937625…integral(x^2*2^((1 + x/2)^3), x, 0, 1)2.2029698172036954849810…The suite passes (16,944) and so do the MCP tests (329). The new tests differentiate four shapes back, one of them with a constant in front, which the first version dropped.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura