Repository navigation
Answer a step function of an unbounded argument times a vanishing factor - #2430
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
x floor(2/x) at 0 was left unevaluated, each side stopping at 0 * floor(+-oo), where it is 2. floor(g), ceil(g) and round(g) are within 1 of a real g, so f * step(g) - f * g tends to 0 wherever f does, and the two products have the same limit. A new solver at the end of the list read at +oo takes that limit from f * g, and only a value: where f * g has no limit it is left as it was. 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 #2430 +/- ##
==========================================
- Coverage 86.81% 86.80% -0.02%
==========================================
Files 312 312
Lines 69551 69566 +15
Branches 20316 20323 +7
==========================================
+ Hits 60383 60385 +2
- Misses 4932 4946 +14
+ Partials 4236 4235 -1
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.
x * floor(2/x)at 0 is 2 from each side, and the limit solver left it unevaluated. Every one-sided path put each factor's own limit in place of the factor, so each stopped at0 * floor(+oo). The squeeze ruleSolveAsBoundedTimesVanishingneeds its other factor bounded, andfloor(g)withgunbounded is not.A new rule,
SolveAsAStepOfAnUnboundedArgument, applies to a product or quotient with a factorfloor(g),ceil(g)orround(g), wheregis real-valued and the productfof the other factors containsxand tends to 0. Since|step(g) - g| <= 1,f * step(g) - f * gtends to 0, so the limit islim f * g, for a value or an infinity alike. The rule answers only when that limit is not NaN. It is last in the list of solvers at +oo, so it covers one-sided limits at a finite point (throughdest ± 1/x), limits at an infinity, and two-sided limits.x * floor(2/x)floor(1/x) * sin(x)x^2 * floor(1/x^2)x * ceil(1/x)x * round(1/x)OverflowException-3 * x * floor(1/x)x^2 * floor(1/x)x * floor(1/x^2)sqrt(abs(x)) * floor(1/x)x * floor(sin(1/x)/x)x * floor(2/x) + 3floor(x) / x, at +oofloor(2/x),sin(1/x)floor(x)Every true value was checked numerically at x = ±7/3·10^-k for k = 4..8. #2419's four rows, which master leaves unevaluated, are now answered, and its test pins
floor(1/x) / floor(2/x)in their place. That limit is 1/2, which no rule here reaches yet, and 2.6.0 also leaves it unevaluated. Two limits that do not exist stay unevaluated rather than NaN, as on master:x * floor(sin(1/x)/x)andx * floor(1/x)^2.Checked on this branch:
🤖 Generated with Claude Code