Repository navigation
A quadratic sharing a root off the real line with a linear beside it is written over that root - #1750
Merged
Rafael-SOWNet merged 2 commits intoOct 4, 2026
Conversation
…is written over that root 1/((a + i a tan(x)) (c + d tan(x))) is under the tangent substitution a rational function over (1 + i u)(c + d u)(1 + u^2), and 1 + u^2 is (1 + i u)(1 - i u): the written factors share a linear, which the divisors over the rationals do not see. With a symbol in the denominator the quadratic is written over the linears of its roots and the shared one taken as one power, for the splits. Rubi's 4.3.2.1. 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.
1/((a + i a tan(x)) (c + d tan(x))), Rubi's 4.3.2.1, is under the tangent substitution a rational function over(1 + i u)(c + d u)(1 + u^2), and1 + u^2is(1 + i u)(1 - i u): the written factors share a linear. The splits read written factors as coprime, and the divisors that take shared factors apart are taken over the rationals, which the imaginary unit is not. 2.5.0 declined them too:fc7aafe21/((a + i a tan(x)) (c + d tan(x)))tan(x) - iand logarithms, in 0.8 s1/((a + i a tan(x))^2 (c + d tan(x)))1/((a + i a tan(x)) (c + d tan(x))^2)The times of this column include differentiating the answer back with the symbols pinned to check it, as complex numbers.
What changes. With a symbol in the denominator, a quadratic that has a root off the real line in common with a linear beside it is written as its leading coefficient times the linears of its two roots, and the shared linear is taken as one power, so that the splits see the factors they are.
Tests:
ComplexRootSharedWithAQuadraticIntegralTest, four rows compared as complex numbers, since the integrands are complex along the real line; all four are declined on master.Measured first on the 322 problems of 4.3.2.1 and 4.3.3.1 with
a + i a tan(x)in them, at the corpus's 5-second budget, against master8f3757cd, the branch's base:Measured then on the Rubi corpus against master
8f3757cd:The harness counts no answer wrong in the pocket or the sample on either build. Of the 17 problems the two builds disagreed on, pocket and sample together, run again one build at a time, master answers 5 and this 15: seven of 4.3.2.1's,
1/((a + i a tan(e + f x))^m (c + d tan(e + f x))^n)formandnfrom one to three, that master runs past the budget with and this answers in a third of a second to a second; three more that master ran past the patience with and this answers at seventeen to twenty-three seconds; and the five both answer, at eleven to twenty-three seconds.1/((a + i a tan(e + f x))^3 (c + d tan(e + f x))^(3/2)), which master declines after eight seconds, runs past the budget here, and one is declined by both. Family 1's one in the sample is one of those near the patience, which ran past it during this build's run.The suite passes on the commit measured,
15f95526, 14,595 tests with 13 skipped, and the allocation gate with it. On the merge with masterfc7aafe2,1e0fb647, the 4,124 calculus and corpus tests that run pass, with 2 skipped. Every row of the first table is as it says on the merge.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura