Repository navigation
A secant beside powers of its conjugate sums, in the sum - #1829
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
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(e + f x) (a + a sec(e + f x))^m sqrt(c - c sec(e + f x))was declined, with two more of Rubi's 4.5.2.3 that differ only in the power of the second sum. The two sums multiply to a square,so in
u = a + a sec(y)the root of the second istan(y)oversqrt(u)times a constant,sec(y) tan(y) dyisduover one, andc - c sec(y)isc (2 - u/a). What is left isu^(m - 1/2) (2 - u/a)^(n - 1/2), a whole power of a linear beside a symbolic power ofu, which is answered at once.SolveASecantBesidePowersOfItsConjugateSumstakes either sign and the cosecant's. The constants are not written: the answer is the integrand times the antiderivative inuover what that differentiates back to, a quotient whose square is one. It is kept only where that square is one at the sampled points.61fb760bsec(x) (a + a sec(x))^m (c - c sec(x))^(5/2)sec(x) (a + a sec(x))^m (c - c sec(x))^(3/2)sec(x) (a + a sec(x))^m sqrt(c - c sec(x))sec(x) (a - a sec(x))^m sqrt(c + c sec(x))csc(x) (a + a csc(x))^m sqrt(c - c csc(x))xstands fore + f xin the first three rows, which is what was probed.Tests:
ASecantBesideConjugateSumsIntegralTest, four rows withm = 2.3, each differentiated back and compared as a complex number at six real points.Measured on every corpus problem with a secant or a cosecant in its integrand, 6,489 of them, at the corpus's 5-second budget, against master
e1a1a3fc, before #1828:The three of 4.5.2.3 are answered here and not on master, and none the other way. The harness cannot check them: with
aandcof one sign, the integrand is-a c tan^2under a root and is complex at every real point it samples. The test above compares them as complex numbers. On the 6,363 both answer the time is 1,691 seconds on master and 1,696 here.The suite passes: 15,175 passed, 13 skipped, none failed. The allocation gate passes: every gated benchmark allocates what the baseline says. Merged with master after #1828: the library builds for every target, and the secant and half-angle tests pass, 348.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura