Repository navigation
a + i a tan below an odd power of the secant is written over its conjugate - #1815
Merged
Rafael-SOWNet merged 1 commit intoOct 7, 2026
Conversation
…ugate The sum times its conjugate is a^2 sec(z)^2, so sec(z)^s/(a + i a tan(z))^n is sec(z)^(s - 2n) (a - i a tan(z))^n/a^(2n), which the rules for the sine and the cosine answer. Part of #718. 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.
sec(c + d x)^7/(a + i a tan(c + d x))^4was declined, with ten more of Rubi's 4.3.1.2 that are an odd power of the secant over a whole power ofa + i a tan. #1812's rule integrates these inu = a + i a tan(z), where whole powers on both are left to the rules for the sine and the cosine but fors + 2 n = 1; those rules decline them or run past five seconds, and inuthes + 2 n = 1rows took two seconds for answers thousands of characters long.The sum times its conjugate is
a^2 sec(z)^2, soa whole power of the conjugate beside one of the secant, which the rules for the sine and the cosine answer in a fraction of a second. A positive odd power of the secant is rewritten so; an even one, and an odd power of the cosine, are left as they were, the rules answering them shorter or sooner as written.
c18738dbsec(x)^7/(a + i a tan(x))^4sec(x)^9/(a + i a tan(x))^8sec(x)^5/(a + i a tan(x))^2sec(x)^7/(a + i a tan(x))^3Tests: three rows in
SecantBesideAnImaginaryTangentSumIntegralTest, one witha - i a tan, each differentiated back and compared as a complex number at six real points.Measured first on every corpus problem with
iin its integrand, 2,253 of them, at the corpus's 5-second budget, against master8a310f7f(#1814 changes none of these rows):The one counted wrong on both is the known 6.1.5
1/(a + i a sinh(c + d x))^(1/2), the harness's own. Eleven problems are answered here and not on master, all of 4.3.1.2, in 57 to 338 ms, and none the other way; on the 1,987 both answer the time goes from 1,944 seconds to 1,903.Measured then on the Rubi corpus:
The harness counts no answer wrong in either. The twelve problems the builds disagreed on, run again one build at a time: master answers one, the family 1 problem that ran past its budget in the shared run, and this answers all twelve.
The suite passes on
3b4ec9ca, this change on8a310f7f: 15,134 passed, 13 skipped, none failed; rebased ontoc18738dbwithout a conflict, the tests of both rules pass again. The allocation gate passes: every gated benchmark allocates what the baseline says. The library builds for every target.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura