Repository navigation
A tangent above an imaginary tangent below is written in sines and cosines, and those as exponentials - #1711
Merged
Conversation
…sines, and those as exponentials With A + i A tan(z) below the bar written as A e^(i z)/cos(z), a tangent of z above it stayed one, so tan(z) cos(z) was handed on as written, and with z = c + d x the phase was expanded into sin(c) and cos(c) beside d x: tan(c + d x)/(a + i a tan(c + d x)) ran past the budget. The tangent or cotangent above is written in sines and cosines, what the identity puts below cancels against it, and the sines and cosines of z left are written as exponentials, so the whole is a rational function of e^(i z). Only where nothing of x stands beside them but exponentials of linears and polynomials in x: sec(z)^8/(a + i a tan(z))^4 and sqrt(tan(z))/(a + i a tan(z))^(5/2) are read through the tangent as before. Part of #718 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…nt-cancels-its-cosine
…nt-cancels-its-cosine
…nt-cancels-its-cosine
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.
a + i a tan(z)below the bar isa e^(i z)/cos(z), and the rule that writes it so left a tangent ofzabove the bar as it was:tan(z) cos(z)was handed on as written, and withz = c + d xthe phase was expanded intosin(c)andcos(c)besided x, a search past any budget.9c2509d8tan(c + d x)/(a + i a tan(c + d x))1/(a + i a tan(c + d x))tan(c + d x)^3/(a + i a tan(c + d x))^4tan(c + d x)^2/(a + i a tan(c + d x))cot(c + d x)/(a + i a cot(c + d x))What changes. In the rule that writes an imaginary tangent as an exponential, a tangent or cotangent of the same argument above the bar is written in sines and cosines, what the identity puts below cancels against it, and the sines and cosines left are written as exponentials, so the whole is a rational function of
e^(i z). Only where nothing ofxstands beside them but exponentials of linears and polynomials inx; anything else is read through the tangent as before, since written as exponentialssec(z)^8/(a + i a tan(z))^4andsqrt(tan(z))/(a + i a tan(z))^(5/2)took minutes.#1710 answers two of the five rows on its own, the second in 0.7 s and the third in 3.4 s; the other three run past a minute there too.
Tests:
PolynomialExponentialTrigTest.AnImaginaryTangentOfALinearWithATangentAboveTheBar, the five rows above, each differentiated back with the symbols pinned after integrating.Measured first on the 531 corpus problems with
a ± i a tanora ± i a cotbelow the bar, at the corpus's 5-second budget, against mastere73a940a, the branch's base:115 more are answered, 64 of them in 4.3.2.1
(a + b tan)^m (c + d tan)^nand 36 in 4.3.3.1, and none that master answers is lost.Measured then on the Rubi corpus against master
e73a940a:No answer is wrong on either build. The 15 problems the two builds disagreed on, run again one build at a time, are 11 answered here and none on master.
The suite passes on the commit measured,
57767ba7, 14,522 tests, and so does the allocation gate. Master9c2509d8is merged in since, without conflicts, and the calculus tests pass on the merge, 3,924 of them.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura