Repository navigation
Cancel the logarithms of the moduli of polynomials at -oo (#2633) - #2640
Merged
Merged
Conversation
At -oo a factor such as x + 1 is negative. The real-logarithm rewrite (#2616) therefore takes its logarithm in the antiderivative as ln|x + 1|. The degree split before the limit at an infinite bound (#2626) reads only polynomials, so it declined, and 1/(x^5 + 1) over (-oo, -2] was left unevaluated while its mirror over [2, +oo) was answered. ln|a| = d ln|x| + ln(|a| / |x|^d) holds for every real x but 0, just as ln(a) does for a positive. The modulus of a polynomial now has that polynomial's degree. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2640 +/- ##
==========================================
- Coverage 86.70% 86.69% -0.01%
==========================================
Files 345 345
Lines 75428 75543 +115
Branches 22034 22076 +42
==========================================
+ Hits 65397 65494 +97
- Misses 5418 5426 +8
- Partials 4613 4623 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
At
-ooa factor such asx + 1is negative. The real-logarithm rewrite (#2616) takes its logarithm in the antiderivative of its modulus,ln|x + 1|. The degree split before the limit at an infinite bound (#2626) read only polynomials and declined on the modulus. So1/(x^5+1)over(-oo, -2]was left unevaluated, although its mirror over[2, +oo)is answered.ln|a| = d ln|x| + ln(|a| / |x|^d)holds for every realxbut 0, so the modulus of a polynomial now has that polynomial's degree. That is a seven-line change.integral(1/(x^5+1), x, -oo, -2)integral(x/(x^5+1), x, -oo, -2)integral(1/(x^5+1), x, -oo, +oo)NaNx = -1The last row is
NaNbecause the pieces on either side of the pole are-oo(over(-oo, -1]) and+oo(over[-1, 0]). That is the library's reading of1/xover[-1, 1]too: no value.Checks
quadat 50 digits. It found no wrong value on master or on this branch. Its 91 refusals are unchanged: almost all are sums over roots, at-oo, or beside a separate logarithm. They are a separate mechanism, listed in the report.Closes #2633.
🤖 Generated with Claude Code