Repository navigation
An odd power of a quadratic's derivative over a power of it, in the quadratic - #1837
Merged
Rafael-SOWNet merged 2 commits intoOct 10, 2026
Merged
Rafael-SOWNet merged 2 commits into
Rafael-SOWNet merged 2 commits into
Conversation
…uadratic Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
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.
(b + 2c x)^9/(a + b x + c x^2)^3is answered through the partial fractions in 76,153 characters, with a case for each sign of the discriminant. Inu = a + b x + c x^2, an odd power of a multiple of the derivative is a polynomial inuover a power of it, since(b + 2c x)^2 = 4c u + b^2 - 4ac. The answer is a few powers of the quadratic.SolveByPartialFractionsnow first readsK L^m/Q^n, whereQis a quadratic,Lis a linear that is a multiplelambdaofQ', andmis odd and at least 3. It integratesK lambda^m (4A u + B^2 - 4AC)^((m - 1)/2)/u^ninu. A symbol shared by the linear's coefficients needs nothing more:b d + 2c d xisdtimes the derivative, andlambdacarries it. The step stands ahead of #1836's, which still answers the even powers.492fba61(b + 2c x)^9/(a + b x + c x^2)^3(b d + 2c d x)^9/(a + b x + c x^2)^3Tests:
AnOddPowerOfAQuadraticsDerivativeIntegralTest, both rows, each differentiated back and compared at six points, and each under 2,000 characters.Measured on 14,109 corpus problems, every one whose integrand is a rational function and every one with a secant or a cosecant in it, at the corpus's 5-second budget, against master
314fa885, before #1836:The one problem answered here and not on master is 1.2.1.2's
(b d + 2c d x)^9row, which #1836 has since answered on master too. None go the other way. On the 13,926 both answer the time is 2,113 seconds on master and 2,101 here.The harness counts no answer wrong in either. The suite passes: 15,192 passed, 13 skipped, none failed. The allocation gate passes: every gated benchmark allocates what the baseline says. Merged with master
492fba61: the library builds for every target, and the partial-fraction tests pass, #1836's among them (196). The entry inBREAKING-CHANGES.mdis measured on a build of 2.5.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura