A symbolic power of a + i a tan beside a power of the secant is integrated as an exponential - #1796
Merged
Rafael-SOWNet merged 2 commits intoOct 5, 2026
Conversation
…rated as an exponential (k sec(c + d x))^(-4 - n) (a + i a tan(c + d x))^n and the rest of Rubi's 4.3.1.2 whose two powers are symbols adding up to a whole number were declined: the powers were read as numbers only. At a sum of 0 the power of w is written alone, since (w^2 + 1)^0 is 1 only where w^2 + 1 is not 0 and the integral with that condition beside it was declined. A short sum of symbols in the answer is simplified. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…-an-imaginary-tangent-beside-the-secant
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.
(k sec(c + d x))^(-4 - n) (a + i a tan(c + d x))^nand the rest of Rubi's 4.3.1.2 whose two powers are symbols adding up to a whole number were declined:a5ce1c55(a + i a tan(c + d x))^n/(pe sec(c + d x))^n(pe sec(c + d x))^(-1 - n) (a + i a tan(c + d x))^n(pe sec(c + d x))^(-2 - n) (a + i a tan(c + d x))^n(pe sec(c + d x))^(-3 - n) (a + i a tan(c + d x))^n(pe sec(c + d x))^(-4 - n) (a + i a tan(c + d x))^npestands for Rubi'se, which the parser reads as Euler's number. Each answer is differentiated back at six points with the symbols pinned, compared as complex numbers.What changes.
SolveAPowerOfAnImaginaryTangentBesideAPowerOfTheSecantintegrates(A + i A tan(z))^n (c sec(z))^mwithn + ma whole numberkas the exponential it is,A + i A tan(z)beingA sec(z) e^(i z)on the real line: inw = e^(i z)it is(2 w/(w^2 + 1))^k w^n dw/(i w). It read the two powers as numbers only. A symbol is read now, the sum simplified to its number, so that(-4 - n) + nis -4: the integral inwis thenw^(n - 5) (w^2 + 1)^4, a sum of powers. At a sum of 0 the power ofwis written alone, since(w^2 + 1)^0is 1 only wherew^2 + 1is not 0, and the integral with that condition beside it was declined. A short sum of symbols in the answer is simplified, since the power rule writesw^(n + -4 - 1 + 1)/(n + -4 - 1 + 1)forw^(n - 4)/(n - 4).The rest of 4.3.1.2's symbolic rows,
(k sec(z))^(6 - 2n) (a + i a tan(z))^nand the like, add up toj - nand are not read by this rule: theresec(z)^2is the product of the two conjugate sums, which leaves a symbolic power of one beside a whole power of the other.Tests:
ImaginaryTangentBesideTheSecantIntegralTest, three rows with a symbolic power, adding up to -4, -1 and 0, compared as complex numbers on both sides of 0 and where the cosine is negative.Measured first on all of Rubi's 4.3.1.2, at the corpus's 5-second budget, against master
b1af529d, the branch's base:Measured then on the Rubi corpus against master
b1af529d:The harness counts no answer wrong in either.
The 16 problems the two builds disagreed on, pocket and sample together, run again one build at a time: this answers four that master does not,
(pe sec(c + d x))^(-k - n) (a + i a tan(c + d x))^nforkfrom 0 to 3, and a fifth,k = 4, which the harness cannot verify. One that master answered alone ran past the budget here, 6.6.1:24, which takes 23 seconds on either build asked on its own. The other ten are answered by both or by neither.The suite on the commit measured,
7e709fc3, passes, 14,988 tests, and so does the allocation gate: every gated benchmark allocates what the baseline says. The head here,360de735, merges mastera5ce1c55; the calculus and corpus tests pass on it, 4,350 tests, and the library builds fornetstandard2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura