Repository navigation
Take a limit over a constant as its dividend's limit over the constant (#2648) - #2651
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
#2648) The descent asked a quotient by a nonzero finite constant whole, through the solvers that rewrite it, before it asked the dividend. 4 arctan((6 tan(x/2) + 2)/(4 sqrt(2))) / (4 sqrt(2)) at pi from the left took seventeen seconds, where the dividend's limit takes a fraction of one. The integral of 1/(3 + sin(x)) over a range across pi, which asks that limit at the pole of tan(x/2), did not finish. Over a constant that is finite and not 0, the limit is now the dividend's limit over the constant, taken first. The dividend is asked as a whole limit, which is a smaller question, so a constant factor inside it is taken out quickly too. A dividend whose limit is undecided or undefined goes the long way, as before. 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 #2651 +/- ##
==========================================
+ Coverage 86.71% 86.72% +0.01%
==========================================
Files 346 346
Lines 75647 75664 +17
Branches 22114 22119 +5
==========================================
+ Hits 65596 65620 +24
+ Misses 5420 5413 -7
Partials 4631 4631
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.
The limit descent asked a quotient by a nonzero finite constant as a whole quotient first, through the solvers that rewrite it, and only afterwards asked its dividend. That ordering is what makes a definite integral of
1/(A + B sin(x))acrosspitake seconds or never finish. Its antiderivative isc arctan((p tan(x/2) + q)/r)divided by an irrational constant, and the range is split at the pole oftan(x/2), where one-sided limits are taken.Over a constant that is finite and not 0, the limit is now the dividend's limit over the constant, taken first. The dividend is asked as a whole limit, which is a smaller question, so a constant factor inside it is also taken out quickly. A dividend whose limit is undecided or undefined goes the long way, as before.
integral(1/(3+sin(x)), x, 0, 2 pi)sqrt(2) * pi / 2(0.8 s)integral(1/(3+sin(x)), x, 0, 5)integral(1/(4 - 3cos(x) + sin(x)), x, 2, 9)limit(4 arctan((6 tan(x/2) + 2)/(4 sqrt(2)))/(4 sqrt(2)), x, pi-)Checks
This changes
Limit.Classes.cs, so the queued chain's limit harnesses are the measurement that matters most.Closes #2648.
🤖 Generated with Claude Code