Repository navigation
An even rational function with symbols skips the substitution search - #1830
Merged
Merged
Conversation
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
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This was referenced Oct 9, 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.
Part of #718.
(d + e x^2 + f x^4)/(x^4 (a + b x^2 + c x^4)^2)ran past the corpus's budget, with four more of Rubi's. In each the time went toSolveBySubstitutiondeclining an even rational function with symbols in it. The half-angle tangent makes one of1/((c + d sec(x))^3 sqrt(a + a sec(x))),(1 + x^2)^2/((c + d + (c + 3d) x^2 + 2d x^4)^3 (1 + 2x^2)). The search spent 31 seconds simplifying its quotient by each candidate's derivative, and the partial fractions after it answered in under one. The derivative of anything even is odd, so no polynomial candidate is the substitution for an even rational function. The search now skips one that holds a symbol and whose denominator is past a sextic as written.e7ef0b75(d + e x^2 + f x^4)/(x^4 (a + b x^2 + c x^4)^2)(d + e x^2 + f x^4 + g x^6)/(x^4 (a + b x^2 + c x^4)^2)cos(x)^5/(a + b sec(x)^2)^31/((c + d sec(x))^3 sqrt(a + a sec(x)))1/((a + a sec(x))^(3/2) (c + d sec(x))^3)xstands fore + f xin the trigonometric rows, which is what was probed. Where master answers, the answer is the same. The last row's remaining time is the partial fractions over a symbolic quadratic to the third power.Tests:
AnEvenRationalFunctionIntegralTest, the first row and the half-angle tangent's rational function above, each differentiated back and compared at six points.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
61fb760b:Five problems are answered here and not on master, two of 1.2.2.6, two of 4.5.2.1 and one of 4.5.7, and none the other way. On the 13,889 both answer the time is 2,400 seconds on master and 2,371 here.
The harness counts no answer wrong in either. The five problems the builds disagreed on, run again one build at a time: master answers none within the budget, this all five.
The suite passes: 15,176 passed, 13 skipped, none failed. The allocation gate passes: every gated benchmark allocates what the baseline says. Merged with master: the library builds for every target.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura