Repository navigation
A quotient in x^2 over a power of a linear in x^2 and a biquadratic is split in x^2 - #1809
Merged
Rafael-SOWNet merged 1 commit intoOct 6, 2026
Conversation
…s split in x^2 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.
sqrt(c + d tan(e + f x)) (A + B tan(e + f x) + C tan(e + f x)^2)/(a + b tan(e + f x))^3ran past the corpus's budget and, given a minute, was answered in 3.5 million characters; the rest of Rubi's 4.3 rows that put a half-odd power of one tangent sum over a whole power of another ran to tens of thousands to millions. Split inx^2, they are answered in a few thousand:2d3dc6a8sqrt(c + d tan(e + f x)) (A + B tan + C tan^2)/(a + b tan(e + f x))^3(c + d tan(e + f x))^(3/2) (A + B tan + C tan^2)/(a + b tan(e + f x))^3sqrt(c + d tan(x))/(a + b tan(x))^2(c + d tan(x))^(3/2)/(a + b tan(x))^3The times are the corpus harness's, with its check; the sizes are of the answer the integrator returns, each differentiated back at six points with the symbols pinned. Of the rows both builds answer, 19 of a sample of 20 are the same answer here, and the twentieth is shorter: 103,167 characters to 24,063.
What changes. Under
u = tan(x)andt = sqrt(c + d u), these are a polynomial int^2over(a d + b (t^2 - c))^n ((t^2 - c)^2 + d^2), a power of a linear int^2beside a biquadratic, which was split int: the sum of two squares went over its conjugates (#1804), each of the three terms came to sixty thousand characters, and their sum multiplied their arms.SolveAnEvenQuotientOverAPowerOfALinearInTheSquareAndABiquadraticsplits it ins = x^2 - r,rthe linear's root: in powers ofsthe quotient is the one #1806 splits overw^k Q, and the terms in1/(x^2 - r)^jgo by their reduction toatan(x/sqrt(-r))/sqrt(-r), which holds for every complexrbut zero and so writes no arms. A root shared with the biquadratic declines. The split and the biquadratic's arctangents are taken out ofSolveAnEvenPolynomialOverASymbolicBiquadraticinto two helpers the two rules share; its answers are the same, character for character, on its tests and the cotangent's rows.Tests:
PowerOfALinearInTheSquareBesideABiquadraticIntegralTest, four rows, each differentiated back with its answer under 10,000 characters.Measured first on Rubi's 4.3 rows with a root and no
i, 1,095 problems, at the corpus's 5-second budget, against master2d3dc6a8:The harness counts no answer wrong in either. On the 1,043 problems both answer, the time goes from 521 seconds to 315.
Measured then on the Rubi corpus against master
2d3dc6a8:The harness counts no answer wrong in either.
The 21 problems the two builds disagreed on, pocket and sample together, run again one build at a time: master answers three of them, each in about twenty seconds with the check, two of them the rows of the table's first lines, and runs past the budget on the other 18; this answers all 21. They are 12 of Rubi's 4.3.4.2, 5 of 4.3.2.1, 2 of 4.3.3.1, one of 4.3.7 and one of 1.2.1.4.
The suite passes on the head here,
d6872199, which is master2d3dc6a8and this change: 15,113 tests, every one reported. The allocation gate passes too: every gated benchmark allocates what the baseline says. The library builds fornetstandard2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura