Repository navigation
Take a complex unit common to a polynomial out before expanding it - #1937
Merged
Rafael-SOWNet merged 4 commits intoOct 18, 2026
Merged
Conversation
…expanding A factor whose coefficients are one complex number times real ones, with any product of symbols common to them all, gives that number up before the complex-coefficient rule expands it: (i a + i a x^4)^3 is (i a)^3 (1 + x^4)^3. 1/(x^2 (i + i x^4)^3) expanded past the degree bound and was declined. And the root of a quotient of linears distributes a whole power of a quotient in the integrand it builds, which with a symbol in the linears came through as (-i (u^4 - 1)/(a (u^4 + 1)))^(-3) and was not read. 1/(e^((5/2) i arctan(a x)) x^3) and x^4 were left unevaluated (Rubi's 5.3.6:129 and :130). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…arccotangent 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
…ommon-to-a-polynomial-goes-out
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.
1/(e^(5/2 i arctan(a x)) x^3)(Rubi's 5.3.6) was left unevaluated. Written algebraically, it puts a power of a polynomial whose coefficients sharei,(i a + i a x^4)^3, below the bar. The rule for complex coefficients then expanded that power past the degree it reads.ACommonComplexUnit).The same change answers three rows of 7.4.2,
1/(e^(arccoth(a x)) (c - a^2 c x^2)^k)for k = 2, 3, 4. Master answers themNaN + C, and 2.5.0 left them unevaluated. The path on master that returnsNaN + Cis not removed here; these rows no longer reach it. k = 5 behaves the same:NaN + Con master, 1,409 characters here.0f8406691/(e^(5/2 i atan(a x)) x^3)1/(e^(5/2 i atan(a x)) x^4)1/(e^acoth(a x) (c - a^2 c x^2)^2)NaN + C)^3NaN + C)^4NaN + C)Measured:
iin them, plus the exponentials of atanh and acoth, branch against master53a0fa42, with the moved rows re-measured on0f840669. The five rows above are the only gains. The two other moves, 4.3.1.2:361 and 7.3.6:1174, behave the same on both arms re-run alone.AComplexUnitCommonToAPolynomialIntegralTest(5 rows) fails on master and passes here.BREAKING entry: A complex unit common to a polynomial's coefficients is taken out before it is expanded. The 2.5.0 column was measured on the
v2.5.0package.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura