Repository navigation
A symbolic exponent that is -1 as a value is integrated to the logarithm - #1723
Merged
Rafael-SOWNet merged 2 commits intoOct 4, 2026
Merged
Rafael-SOWNet merged 2 commits into
Rafael-SOWNet merged 2 commits into
Conversation
x^(-1 - 3n) (a + b x^n)^3 expanded leaves x^(-1 - 3n + 3n) for its last term, which is x^(-1) for every n, and InnerSimplified keeps -3n + 3n as two terms. The power rule read the exponent as written and divided by its zero, so the whole answer had no value anywhere; x^(-n/n) came back NaN. It asks whether the exponent plus one vanishes as a value now, and gives the logarithm where it does. Part of #718. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…-of-minus-one-as-a-value-is-the-logarithm
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.
x^(-1 - 3n) (a + b x^n)^3came back as a sum whose last term wasx^0/0, so that the answer had no value anywhere, andx^(-n/n)asNaN + C. Both were so on 2.5.0 too:51cb049ax^(-1 - 3n) (a + b x^n)^3x^0/0, no value anywhereb^3 ln(x)x^(-1 - 3n + 3n)x^(-1 - 3n + 3n + 1)/(-1 - 3n + 3n + 1), no value anywhereln(x)x^(-n/n)NaNln(x)1/(a (b x^m)^n)^(1/(m n))NaN(a b^n)^(-1/(m n)) ln(x), providedb > 0anda b^n > 0What changes. Expanded,
x^(-1 - 3n) (a + b x^n)^3leavesx^(-1 - 3n + 3n)for its last term, which isx^(-1)for everyn. The power rule reads-1once the exponent is the number (#1258's fix), butInnerSimplifiedkeeps-3n + 3nas two terms, and the rule read this one as written and divided by its zero. It asks whether the exponent plus one vanishes as a value now -- at pinned values first and then simplified, as the integrator asks elsewhere -- and gives the logarithm where it does. A symbolic exponent that is-1for one value only,x^nitself, is the power rule's as before.Tests:
ExpandedSquareNaNTest.AnExponentThatIsMinusOneAsAValue, five rows, each differentiated back with the symbols pinned; all five fail on master.x^nandx^(n - 1)joinThePowerRuleIsUnchanged.Found by
work/intbench, which counts an answer that has no value anywhere as wrong, on every fourth problem of Rubi's 1.1.2.2 and 1.1.3.2: five there, the four rows of this shape and the last row above. Its usual sample of forty a file reaches none of them.Measured first on every sixth of the 6,519 problems in the corpus with a symbolic exponent, 1,087, at the corpus's 5-second budget, against master
8f3757cd, the branch's base:The three are 1.1.3.2's
1/(a x^n)^(1/n),x^(-1 - 4n) (a + b x^n)^5andx^(-1 - 8n) (a + b x^n)^8.Measured then on the Rubi corpus against master
8f3757cd:No answer is wrong in the sample on either build. Of the eight problems the two builds disagreed on, run again one build at a time, three are the pocket's wrong answers, right here, and the other five are answered on both.
The suite passes on the commit measured,
a0c1e98e, 14,598 tests, and so does the allocation gate. Master51cb049ais merged in since, without conflicts; the calculus tests pass on the merge, 3,990 of them, and the four rows above are right on it.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura