A half-odd power of a constant over a polynomial of either sign is integrated with its sign - #1757
Merged
Rafael-SOWNet merged 2 commits intoOct 4, 2026
Conversation
…tegrated with its sign 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
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.
sqrt(1/(1 - x^2)), the arcsine's derivative where it is real, is declined, with every half-odd power of a constant over a polynomial whose sign changes: the reading that writes a power of a quotient apart does so only where the denominator is positive for every realx. 2.5.0 declined them too:9848e467sqrt(1/(1 - x^2))sgn(1 - x^2) arcsin(x), in 0.5 ssqrt(1/(x^2 - 1))(1 - x^2) sqrt(1/(2 - x^2))(1/(1 - x^2))^(3/2)sgn(1 - x^2) x/sqrt(1 - x^2), in 0.05 s(c/(a + b x^2))^(3/2)x^2 (c/(a + b x^2))^(3/2)Each answer is differentiated back with
a = 2.3,b = -0.7,c = 1.3and compared as a complex number atx = ±0.6, ±1.6, ±2.4; the times include that.What changes. For a real
Qother than zero,(A/Q)^ris(A/Q)^r Q^rtimesQ^(-r), and the first factor's derivative is zero wherever it has one; for a positive numberAandrhalf an odd number it isA^r sgn(Q), the root of a negative beingitimes the root of its modulus on both sides of the bar. A half-odd power of a constant over a polynomial of degree four at most, not positive everywhere, among the factors of the integrand, is written so, the rest asked as the same question and the factor put in front of the answer. Late in the chain, after the substitutions, which answer some of these without the factor --x sqrt(1/(4 - x^2))is-(1/(4 - x^2))^(-1/2)on master, and still is.Tests:
HalfOddPowerOfAReciprocalIntegralTest, six rows differentiated back withbnegative, so thata + b x^2changes sign as well, at points on both sides of every denominator's zeros, compared as complex numbers where the integrand is imaginary; all six are declined on master.Measured first on the 21 problems of the corpus with a fractional power of a constant over a sum, at the corpus's 5-second budget, against master
cb8e133d, the branch's base:The fifteen master answers it answers the same way.
Measured then on the Rubi corpus against master
cb8e133d:The harness counts no answer wrong in the pocket or the sample on either build. Of the 21 problems the two builds disagreed on, pocket and sample together, run again one build at a time, master answers 7 and this 18. Six are the pocket's --
sqrt(1/(1 - x^2)),(c/(a + b x^2))^(3/2)and their kin -- answered here in a hundredth to six hundredths of a second. Six more are family 4's half-odd powers of a secant or a cotangent,sec(c + d x)^(3/2)/sqrt(1 + cos(c + d x))among them, answered here in a tenth of a second to sixteen seconds where master declines them or runs past the budget. The one master answers alone,(A + B x + C x^2 + D x^3)/((a + b x)^4 sqrt(c + d x)), at twenty-two seconds, ran past the harness's patience here; run again, twice on each build, it runs past it on both. Two that master declines after eighteen and twenty-four seconds run past the budget here, and the other six both answer at fifteen to twenty-four seconds.The suite passes on the commit measured,
2961a978, 14,781 tests with 13 skipped, and the allocation gate with it. On the merge with master9848e467,be18b1d3, the 4,159 calculus and corpus tests that run pass, with 2 skipped. Every row of the first table is as it says on the merge. With master moved on toce4d1a1f, the 4,165 calculus and corpus tests pass on that merge too.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura