Repository navigation
An answer through the quotient of the logarithm's linears holds where it is given - #1663
Merged
Merged
Conversation
… it is given SolveByTheQuotientOfTheLogarithmsLinears splits the linears' powers as the generic case does, and checks the answer at sampled points before giving it. That check skips a point where the derivative has no value. Past the generic case's domain, the derivative is a fractional power of a negative number, which the interval and decimal evaluations decline, so the check compared only where the generic case holds. e^atanh(a x) sqrt(c - a c x), as e^(ln((1 + a x)/(1 - a x))/2), passed it, and was wrong by its sign past a x = 1, where the integrand is real. The route now also asks DiffersWhereReal, which counts a point where the integrand is real and the derivative has no value as a difference. With that it declines, and the linear radical substitution answers (2/(3 a c)) (c (1 + a x))^(3/2) provided c - a c x >= 0, which is right where it is given. Measured on the Rubi corpus against master 7219aea, every problem of each family, both arms side by side: family 7 is 3679 -> 3689 of 4289 solved and 23 -> 13 wrong, with families 3 and 0 unchanged. Of the 12 problems whose verdict moved, re-run alone, master answers 10 wrongly and this answers those 10 rightly. The suite passes, 14,304 tests, and so does the allocation gate. Closes #1655. 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 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 #1655.
e^atanh(a x) sqrt(c - a c x)was integrated bySolveByTheQuotientOfTheLogarithmsLinears. That route substitutest = (1 + a x)/(1 - a x), which is the quotient inside the logarithmatanhis written with. It splits the powers of the linears as the generic case, and its comment says the answer is checked at sampled points before it is given.The check didn't catch anything. Past
a x = 1, the answer's derivative contains a fractional power of a negative number. Interval arithmetic carries an imaginary part that is only known to within rounding there, on the power's branch cut, so the interval and decimal evaluations rightly decline to evaluate it.HoldsAtSampledPointsskips a point it cannot evaluate. So it compared only the two points inside|a x| < 1, and passed. At the other two points the answer had the wrong sign:a = 1.37,c = 3.71x = 1.43x = 3.17The route now also asks
DiffersWhereReal, which counts a point where the integrand is real and the derivative has no value as a difference. With that the route declines, andSolveByLinearRadicalSubstitutionanswers instead:That answer is right where it is given and makes no claim past
a x = 1. The neighbouring even-root step answers its relative this way already.Test:
AnExponentialOfAnInverseTangentBesideTheRootSaysWhereItHoldschecks the answer's derivative inside, ata x < 1, and past it, where the integrand is real and the answer must either agree or claim nothing. Without the fix it fails atx = 1.43with the sign above.Measured on the Rubi corpus against master
7219aeae, with both builds side by side and every problem in each family:Twelve problems moved, and I re-ran each alone. Master answers ten of them wrongly: Rubi 7.3.6 #273–#281, which are
e^atanh(a x) (c - a c x)^pfor every half-integerpfrom −7/2 to 9/2, and #455, the same integrand as #277. This PR answers all ten rightly. The other two give the same verdict on both builds when run alone. The suite passes, 14,304 tests on a fresh build, and so does the allocation gate.Thirteen wrong answers remain in family 7, on master and here alike:
e^atanh(x)times a half-integer power of1 - x(7.3.6MatrixOperators->Matrices#432–Parse to return an Either, not throwing exceptions #447). That is The integral of e^atanh(x) times a half-integer power of 1 - x has the wrong sign past x = 1 #1664, and a quadrature check confirms it is wrong pastx = 1;e^(k acoth(a x))beside powers ofc - a c xansweredNaN(7.4.2). That is e^(k acoth(a x)) beside a power of c - a c x is integrated to NaN #1665.Family 3's two wrong answers are on master as well, and come from the degenerate
1/(x ln(e^x)): both our answer and Rubi's divide byln(e^x) - x.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura