Repository navigation
A sine or a cosine of a shifted argument is written in the other - #1825
Merged
Rafael-SOWNet merged 1 commit intoOct 8, 2026
Merged
Conversation
Where every trigonometric function is of one of two linear arguments of the same slope, each with an offset, and those of one are sines and cosines only, the addition formula writes them in the other. 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.
sin(a + b x) sec(c + b x)^3was declined in a few milliseconds, with twenty-nine more of Rubi's 4.7.1 that put a sine or a cosine of one linear argument beside functions of another of the same slope:SolveByWritingTwoFunctionsOfShiftedArgumentsApartreads two functions of one kind, and nothing read a sine beside a secant of a shifted argument. Withd = A - Ba constant,so
SolveByWritingASineOfAShiftedArgumentInTheOtherwrites the sines and cosines of the one argument that stands only in sines and cosines in the other, and asks the same question of one argument.Both arguments must carry an offset. A first version did not ask it, and lost nine of 4.3.1.2's
sec(c + d x)^4/(a + i a tan(c + d x))^2and its like: another rule had writtencos(c + d x)ascos(c) cos(d x) - sin(c) sin(d x)on the way, and this one wrote it back, round and round past thirty seconds.136a7f51sin(a + b x) sec(c + b x)^3cos(a + b x) sec(c + b x)^2sin(a + b x) csc(c + b x)^4Tests:
ASineOfAShiftedArgumentIntegralTest, the three rows above, each differentiated back and compared at six points.Measured on every corpus problem of 4.7 and every one with a secant or a cosecant, 7,605 of them, at the corpus's 5-second budget, against master
136a7f51:Thirty problems are answered here and not on master, all of 4.7.1, and none the other way; on the 7,372 both answer the time is 1,922 seconds and 1,922.
The harness counts no answer wrong in either. The thirty problems the builds disagreed on, run again one build at a time: master answers none, this all thirty.
The suite passes: 15,164 passed, 13 skipped, none failed, on the change before its test was added; with it, the related tests pass, 534. The allocation gate passes: every gated benchmark allocates what the baseline says. The library builds for every target.
Left in 4.7.1:
csc(a + b x)^k sin(2a + 2b x)^n, whose arguments' slopes differ by a factor of two.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura