Repository navigation
An even root written apart says where it holds when the integrand is real beyond it - #1669
Merged
Merged
Conversation
…real beyond it `e^atanh(x) sqrt(1 - x)` is `sqrt((1 + x)/(1 - x)) sqrt(1 - x)`, and the root of the quotient was written apart as `sqrt(1 + x)`, which is the integrand only for `x < 1`. Past `x = 1` the even root is not real, and the splitting took that to mean the integrand is not asked about there; but the integrand is real, the product of two imaginary factors, and of the other sign. Where the product under an even root is negative on an interval, the integrand is now evaluated at that interval's sample point in interval arithmetic. Unless it is decidedly not real there, the root still splits, and the answer says it holds where the root is real: `provided (1 + x)/(1 - x) >= 0`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Rafael-SOWNet
added a commit
that referenced
this pull request
Oct 2, 2026
…and the spellings at risk measured again (#1671) * Breaking-changes entries for the integrals that say where they hold Two entries for answers #1663, #1667 and #1669 changed, measured on the 2.5.0 tag and on master 94ba5ff: e^atanh(a x) beside a half-integer power of a linear, and a logarithm of e^x named as a linear, both left unevaluated in 2.5.0. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura * The spellings at risk, measured again `2 | 6` is divisibility now, which is what it says, so it leaves the section; `{ x | x > 0 }` is still a one-element set, holding a divisibility rather than a disjunction; `a != b` is still `a! = b`. And a not-equal written `<>` prints as `not a = b`, not as `<>`. Measured on 94ba5ff. 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>
This was referenced Oct 2, 2026
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.
Closes #1664.
e^atanh(x) sqrt(1 - x)issqrt((1 + x)/(1 - x)) sqrt(1 - x).SolveByWritingAPowerOfAQuotientApartwrote the root of the quotient apart assqrt(1 + x) (1 - x)^(-1/2)and answered(1 + x)^(3/2)/(3/2). An even root written apart is exact wherever the root is real, andAnEvenRootOfAProductSplitschecks that on every interval between the roots of the factors. Where the product is negative, the root is not real, and the check took that to mean the integrand is not asked about there. Pastx = 1it is asked about.e^atanh(x)andsqrt(1 - x)are both imaginary there, so their product is real, and the root written apart has the other sign:x = 0.29x = 1.43x = 3.17Now, on an interval where the product is negative, the integrand is evaluated at the interval's sample point in interval arithmetic, with any other symbol pinned to either sign. If it is decidedly not real there, nothing changes. Otherwise the root is still written apart, and the answer says where it holds:
The only answers that change are ones that were wrong past the root. Where the integrand is not real between the roots, as for
((x - 1)^3 (x + 2)^5)^(1/4)between −2 and 1, the answer stays unconditional. Declining the split instead would leavesqrt((1 + x)/(1 - x)) sqrt(1 - x)with no answer at all.Test:
AnAnswerFromARootWrittenApartHoldsWhereItIsGivencoverse^atanh(x) sqrt(1 - x),e^atanh(x)/sqrt(1 - x)and the baresqrt((1 + x)/(1 - x)) sqrt(1 - x). The answer's derivative must equal the integrand atx = 0.29and−0.61. At1.43and3.17, where the integrand is real, the answer must agree or claim nothing. All three rows fail on master, which gives the sign in the table above.Measured on the Rubi corpus against master
38974356, which has the same library as this branch's base422c7112, with both builds side by side:Twelve problems moved, and I re-ran each alone on both builds:
MatrixOperators->Matrices#432–Parse to return an Either, not throwing exceptions #447, the eight of The integral of e^atanh(x) times a half-integer power of 1 - x has the wrong sign past x = 1 #1664, were wrong on master and are right here.The 15 still wrong in family 7 are the ten #1663 fixed on master, which this branch's base doesn't have, and the five of #1665.
The suite passes, 14,306 tests on a fresh build, and so does the allocation gate.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura