Repository navigation
Remember the limits at a break as the limits at a bound are remembered (#2658) - #2662
Open
Rafael-SOWNet wants to merge 1 commit into
Open
Rafael-SOWNet wants to merge 1 commit into
Rafael-SOWNet wants to merge 1 commit into
Conversation
#2658) A definite integral across a break of its antiderivative takes the antiderivative's one-sided limits there. Those were taken directly, without the cache and the budget that LimitAtTheBound gives the limits at a bound, so every candidate Simplify tried paid them again. With a parameter they are undecided after seconds each. The antiderivative of 1/(a + sin(x)) has a case for each sign of a^2 - 1 and a pole of tan(x/2) at pi in each, and simplifying its integral over [0, 2 pi] did not finish. With numbers, several integrals of 1/(A + B sin(x)) across pi took over thirty seconds. The limits at a break now go through LimitAtTheBound's cache, but not its budget. A decided limit at a break can take more limits than the budget allows: the antiderivative of 1/((1 + x^2)^(1/3) (9 + x^2)) at 0 takes more, and with the budget that integral across 0 was left unevaluated. The parametric integral is left unevaluated in seconds, since it is 2 pi / sqrt(a^2 - 1) only for a > 1. The numeric ones are answered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2662 +/- ##
==========================================
+ Coverage 86.70% 86.71% +0.01%
==========================================
Files 346 346
Lines 75724 75739 +15
Branches 22145 22153 +8
==========================================
+ Hits 65654 65680 +26
+ Misses 5431 5424 -7
+ Partials 4639 4635 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
A definite integral across a break of its antiderivative takes the antiderivative's one-sided limits there. Those limits were taken directly, without the cache and the budget that
LimitAtTheBoundgives the limits at a bound, so every candidateSimplifytried paid for them again.With a parameter, these limits are undecided after seconds each. The antiderivative of
1/(a + sin(x))has a case for each sign ofa^2 - 1, with a pole oftan(x/2)atpiin each case. Simplifying its integral over[0, 2 pi]therefore did not finish. With numbers, several integrals of1/(A + B sin(x))acrosspitook over thirty seconds.The limits at a break now go through
LimitAtTheBound's cache, but not its budget. A decided limit at a break can need more limits than the budget allows: the antiderivative of1/((1 + x^2)^(1/3) (9 + x^2))at 0 does. With the budget in place,EllipticLookingQuotientOfBinomialsTestfailed. That is a refusal, and it was caught by the suite before commit.integral(1/(a + sin(x)), x, 0, 2 pi)integral(1/(a + cos(x)), x, 0, pi)integral(1/(3 + sin(x)), x, 0, 5)integral(1/(4 - sin(x)), x, -7, -2)integral(1/(5 + 2 sin(x)), x, 2, 11)The parametric integral stays unevaluated, because it equals
2 pi / sqrt(a^2 - 1)only fora > 1and diverges for|a| <= 1.Checks
This change is independent of #2651, which speeds up the limit itself; the two complement each other.
Closes #2658.
🤖 Generated with Claude Code