Repository navigation
Put a step function at its one-sided limit before a one-sided limit is taken - #2332
Merged
Rafael-SOWNet merged 1 commit intoNov 2, 2026
Conversation
…s taken floor, ceil, round and sgn take only whole values, so one that has a limit from a side equals that limit on an interval on that side. Each is now put in as its one-sided limit wherever that limit is a whole number, before a one-sided limit is taken, and in the two-sided path each side gets its own. floor(x) is 0 on (0, 1), so floor(x)^x there is 0 to a positive power. It was read as the form 0^0 through e^(x ln(floor(x))), and answered 1: | | 2.6.0 | master | now | |---|---|---|---| | floor(x)^x at 0+ | 1 | 1 | 0 | | floor(x)^tanh(x) at 0+ | unevaluated | 1 | 0 | | floor(x)^x at 0 | unevaluated | 1 | NaN, 1 from the left and 0 from the right | limitcheck, 600 expressions at each of seeds 1, 7 and 11: the findings are master's at 1 and 7, and at 11 the floor(x)^tanh(x) row is gone. 11 more limits are answered across seeds 1 and 7, each agreeing with the values. 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 #2332 +/- ##
==========================================
- Coverage 86.75% 86.74% -0.01%
==========================================
Files 312 312
Lines 68447 68457 +10
Branches 19909 19911 +2
==========================================
+ Hits 59379 59384 +5
- Misses 4908 4915 +7
+ Partials 4160 4158 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Rafael-SOWNet
deleted the
a-step-function-with-a-one-sided-limit-is-that-limit-near-it
branch
November 2, 2026 16:10
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.
Found by limitcheck at seed 11. No issue was filed.
floor,ceil,roundandsgntake only whole values, so one that has a limit from a side equals that limit on a whole interval on that side. Each is now put in as its one-sided limit, wherever that limit is a whole number, before a one-sided limit is taken. In the two-sided path each side gets its own.floor(x)is 0 on(0, 1), so therefloor(x)^xis 0 to a positive power. It was read as the form0^0throughe^(x ln(floor(x))), and answered 1.floor(x)^xat 0+110floor(x)^tanh(x)at 0+10floor(x)^xat 01NaN: 1 from the left, 0 from the rightThe last two were wrong only on master, not in 2.6.0.
limitcheck ran 600 expressions at each of seeds 1, 7 and 11:
floor(x)^tanh(x)row is gone;Tests: four of the seven in
AStepFunctionNearItsLimitTestfail on master; the other three are controls. There is a BREAKING entry, A step function that has a limit from one side is that limit on that side.🤖 Generated with Claude Code