Repository navigation
Cancel a sum over roots with a logarithm beside it at +oo (#2636) - #2641
Merged
Merged
Conversation
A sum over roots sum(c(r) ln(x - r)) is (sum c(r)) ln(x) plus terms that tend to 0 at +oo. #2630 took it at +oo only where sum c(r) is 0 on its own. The antiderivative of (x + 2)/(x^4 - 2x^3 - 2x + 3) is -3/4 ln(x - 1) beside a sum with sum c(r) = 3/4. The two cancel only together, and the integral over [3, +oo) was left unevaluated. By the Euler-Jacobi identity, sum c(r) is exactly the coefficient of r^(n - 1) in c(r) p'(r) over p's leading coefficient. Each sum now stands at the bound as that multiple of ln(x), which differs from it by terms that tend to 0, so the gathering of logarithms cancels it with the others. Where nothing cancels the integral diverges, and it is now +oo. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2641 +/- ##
==========================================
- Coverage 86.70% 86.70% -0.01%
==========================================
Files 345 345
Lines 75541 75577 +36
Branches 22075 22088 +13
==========================================
+ Hits 65501 65527 +26
- Misses 5416 5427 +11
+ Partials 4624 4623 -1
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.
Closes #2636
A sum over roots
sum(c(r) ln(x - r))is(sum c(r)) ln(x)plus terms that tend to 0 at +oo. #2630 took it at +oo only wheresum c(r)is 0 on its own, so where the sum cancels only together with a logarithm beside it, as in the antiderivative of(x + 2)/(x^4 - 2x^3 - 2x + 3)(-3/4 ln(x - 1)beside a sum withsum c(r) = 3/4), the integral over[3, +oo)was left unevaluated.By the Euler-Jacobi identity,
sum c(r)is exactly the coefficient ofr^(n - 1)inc(r) p'(r)overp's leading coefficient. Each sum now stands at the bound as that multiple ofln(x), so the gathering of logarithms cancels it with the others. Where nothing cancels the integral diverges, and it is now+oo. Entry inBREAKING-CHANGES.md.Full UnitTests suite (net10.0, on a1b69bf + this): 21811 passed, 0 failed, 13 skipped.
🤖 Generated with Claude Code