Repository navigation
Take the limit under a condition that holds near the point as the expression's (#2652) - #2653
Merged
Merged
Conversation
…ression's (#2652) The limit of an expression under a condition, f provided c, was not asked of f. The limit pipeline returns nothing for a node that is not continuous, and a condition is not one. The provided node's own descent read f term by term and never asked its whole limit. The antiderivative of ln(1 + 2x)/(1 + x)^2 carries 2x + 1 != 0, so its limit at +oo was left unevaluated where it is 2 ln(2), and the integral over [0, +oo) was left unevaluated with it. Where the condition holds near the point on every side the limit approaches from, the limit is now the whole limit of f, which is a smaller question. Where it does not, nothing is claimed, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2653 +/- ##
==========================================
- Coverage 86.71% 86.70% -0.01%
==========================================
Files 346 346
Lines 75660 75661 +1
Branches 22118 22121 +3
==========================================
- Hits 65608 65602 -6
- Misses 5420 5428 +8
+ Partials 4632 4631 -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.
When a limit was taken of an expression under a condition,
f provided c, the library never asked for the limit offitself.ComputeLimitWithinApproachreturns nothing for a node that is not continuous, and a condition is not one. The provided node's own descent readfterm by term and never asked for its whole limit.The antiderivative of
ln(1 + 2x)/(1 + x)^2carries the condition2x + 1 != 0. Its limit at+oois2 ln(2), and without the condition it is answered in 0.3 s. With the condition it, and the integral over[0, +oo), were left unevaluated.Where the condition holds near the point, on every side the limit approaches from, the limit is now the whole limit of
f. That is a smaller question, since the condition is gone. Where the condition does not hold, nothing is claimed, as before.integral(ln(1 + 2x)/(1 + x)^2, x, 0, +oo), simplified2 * ln(2), matches mpmathintegral(ln(1 + 3x)/(1 + x)^2, x, 0, +oo), simplified3/2 * ln(3), matches mpmathlimit(sin(x)/x provided not x = 0, x, 0)1limit(1 provided x > 0, x, 0+)1limit(1 provided x > 0, x, 0-)and two-sidedChecks:
exp,ln, radicals, rational-trigonometric and rational functions over infinite ranges. Results: 573 correct and 0 wrong. The 7 timeouts are the1/(A + B sin x)class, which Take a limit over a constant as its dividend's limit over the constant (#2648) #2651 fixes separately.The change is in the limit layer (
Solvers.Definition.cs,Limit.Classes.cs, and one helper made internal inTransformations.cs), so the chain's limit harnesses are the measurement to read. The hunk inLimit.Classes.csis inProvidedf, away from #2651's inDivf.Closes #2652.
🤖 Generated with Claude Code