Repository navigation
A tangent times that of its double is a secant less one - #1762
Merged
Rafael-SOWNet merged 4 commits intoOct 4, 2026
Merged
Rafael-SOWNet merged 4 commits into
Rafael-SOWNet merged 4 commits into
Conversation
tan(y) tan(2y) is (1 - cos(2y))/cos(2y), which is sec(2y) - 1 wherever both are defined. Written so, a power of c tan(y) tan(2y) beside the secant or cosine of 2y is in the one argument 2y, where the half-angle tangent answers it; with two arguments nothing read Rubi's sec(2(a + b x))^2 sqrt(c tan(a + b x) tan(2(a + b x))) and the rest of its 4.7.7 with that product. The same question, asked as it. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…t-of-its-double-is-a-secant-less-one
…t-of-its-double-is-a-secant-less-one
…t-of-its-double-is-a-secant-less-one
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(2(a + b x))^2 sqrt(c tan(a + b x) tan(2(a + b x)))was declined, with the rest of Rubi's 4.7.7 powers ofc tan(y) tan(2y)beside the secant or cosine of2y. 2.5.0 declined them or ran past the budget, and master answers one of them:a10be86csec(2(a + b x))^2 sqrt(c tan(a + b x) tan(2(a + b x)))cos(2(a + b x)) (c tan(a + b x) tan(2(a + b x)))^(3/2)1/sqrt(c tan(a + b x) tan(2(a + b x)))sec(2(a + b x))/(c tan(a + b x) tan(2(a + b x)))^(3/2)tan(x) tan(2x)ln(tan(x) + 1)/2 - ln(tan(x) - 1)/2 - arctan(tan(x))ln((1 + sin(2x))/(1 - sin(2x)))/4 - x, in 0.04 sEach answer is differentiated back with
a = 0.4,b = 1.1,c = 1.3and compared atx = -0.9, -0.7, -0.5, 0.05, 0.2; the times include that.What changes.
tan(y)is(1 - cos(2y))/sin(2y), sotan(y) tan(2y)is(1 - cos(2y))/cos(2y), which issec(2y) - 1wherever both sides are defined; at the zeros ofcos(y)the left side is-2as a limit, which the right side is. Written so, a power ofc tan(y) tan(2y)beside powers of the secant or cosine of2yis in the one argument2y, andSolveByTheHalfAngleTangentBesideAHalfOddPowerOfOnePlusASecantanswers it there; in two arguments nothing read it. The product is respelled in any product of the integrand and the same question asked, so the answer is that rule's, which is exact where the integrand is real -- for a positivecwherecos(2y)is positive. A whole power is respelled the same way:tan(x) tan(2x), which master answers through the tangent, is answered asln((1 + sin(2x))/(1 - sin(2x)))/4 - xnow.Tests:
TangentTimesThatOfItsDoubleIntegralTest, five rows differentiated back with the symbols pinned where the integrand is real, on both sides of the zero oftan(a + b x).Measured first on all of Rubi's 4.7.7, 836 problems, at the corpus's 5-second budget, against master
287c69a7, the branch's base:Measured then on the Rubi corpus against master
287c69a7:The harness counts no answer wrong in the pocket or the sample on either build. The family figures were measured with three other corpus runs on the machine. Of the 35 problems the two builds disagreed on, pocket and sample together, run again one build at a time, master answers 3 and this 31. This answers 29 that master does not: 27 of 4.7.7's powers of
c tan(y) tan(2y)beside the secant or cosine of2y, each in a third of a second or less, where master287c69a7declines them, some after six seconds; and a 6.6.1 and a 7.3.2 integrand at twenty-one and twenty-four seconds, at the edge of the harness's patience. Master answers one that ran past the patience here, a 3.2.3 logarithm at twenty-three seconds. Run again, twice on each build, both builds ran past it on both.The suite on the commit measured,
b6465ba3, passed. The allocation gate failed there once, on time alone --EvalTrigPreciseat 3.23 times its baseline, with three other corpus runs on the machine -- and passed when run again, at 1.92 times, its allocation the baseline's. On the merge with mastera10be86c,33f946c6, the 4,182 calculus and corpus tests that run pass, with 2 skipped, and the library builds fornetstandard2.0; the head here merges master9f2cc36dinto that. Every row of the first table is as it says on the first merge. On the merge with master9f2cc36d,0abc6233, the 4,189 that run pass, with 2 skipped; and on the merge with mastera4141483,de64dea7, the head here, the 4,197 that run pass, with 2 skipped, and the library builds fornetstandard2.0.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura