Repository navigation
A rational function with complex coefficients is integrated through its real and imaginary parts - #1710
Merged
Rafael-SOWNet merged 2 commits intoOct 3, 2026
Conversation
…ts real and imaginary parts 1/((1 + i x)^2 (1 + x^2)) was declined: the rational integrator reads coefficients that are rational numbers. Times the conjugate of its denominator over itself, N/D = N D'/(D D') with D' the polynomial whose coefficients are those of D conjugated, the denominator has rational coefficients and the numerator is P + i S with P and S rational, so the integral is that of P/(D D') and i times that of S/(D D'). A product of symbols common to a polynomial's coefficients, a + i a x, comes out with the constants. The tangent substitution makes such a function of Rubi's (a + i a tan(c + d x))^n. Part of #718 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…-with-complex-coefficients
Rafael-SOWNet
deleted the
a-rational-function-with-complex-coefficients
branch
October 29, 2026 00:43
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 rational function with a complex number among its coefficients was declined, whatever its shape: the rational integrator reads coefficients that are rational numbers. The tangent substitution makes such a function of every power of
a + i a tan(c + d x), which Rubi has by the hundred.9c2509d81/((1 + i x)^2 (1 + x^2))x^3/((1 + i x)^4 (1 + x^2))1/((a + i a x)(1 + x^2))1/(a + i a tan(x))^2tan(x)^3/(a + i a tan(x))^4(A + B tan(x))/(a + i a tan(x))^21/(a + i a tan(c + d x))^3What changes. One rule, after the Rothstein-Trager step.
N/Dwith complex coefficients isN D'/(D D'),D'the polynomial whose coefficients are those ofDconjugated:D D'has real coefficients, andN D'isP + i SwithPandSreal, so the integral is that ofP/(D D')plusitimes that ofS/(D D'), each one the rational integrator reads. A product of symbols common to a polynomial's coefficients,a + i a x, comes out in front first. To the twelfth degree.Tests:
ComplexCoefficientRationalIntegralTest, ten rows: three with numbers, two with a symbol in common, five powers ofa + i a tan. Each differentiated back with the symbols pinned.Measured first on the 1,112 corpus problems with
iin the integrand, at the corpus's 5-second budget, against master148f3007, the branch's base:77 more are answered, 32 of them in 4.3.2.1
(a + b tan)^m (c + d tan)^n, and none that master answers is lost.Measured then on the Rubi corpus against master
148f3007:No answer is wrong on either build. The 87 problems the two builds disagreed on, run again one build at a time, are 81 answered here and 3 on master, and those 3 are answered here too: the one in family 1 and one in family 7 each took 24 s on master and timed out here in the sampled run, and alone both builds answer them.
The suite passes on the commit measured,
a676acea, 14,504 tests, and so does the allocation gate. Master9c2509d8is merged in since, without conflicts, and the calculus tests pass on the merge, 3,929 of them.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura