Repository navigation
Pin the limits #231 asked for, including the one still unticked (#231) - #1136
Merged
Merged
Conversation
All three cases the issue lists answer on master, `lim e^x - x` among them, whose box is still unchecked. Measured rather than read: the issue is old, and this workspace has had recorded verdicts turn out stale seven times. Pinned as tests because an issue's list is not one. Closing #231 on the strength of three passing examples would leave nothing that fails if a limit stops working, and a limit solver is a search over several methods where which one answers depends on the shape -- so three cases say almost nothing about the capability. Hence the wider sweep: the two remarkable limits with their constants moved, so that a rule is exercised rather than a value recognised; an indeterminate power; a difference of infinities; polynomial against exponential; a root cancelling a linear term; an oscillation damped by its argument. Twenty in all. `x * ln(x)` and `x^x` at zero answer NaN two-sided and answer correctly one side at a time. That is a decision rather than a gap -- `ln(x)` is not real to the left of zero, so there is no two-sided limit to report -- and it is pinned in both directions, so that "does not answer" and "answers correctly" cannot later be mistaken for one another. Part of #231.
…e-listed # Conflicts: # Sources/.editorconfig
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.
Closes #231.
All three cases answer, including the one still unticked
lim (1 + 1/x)^xasx → +ooelim sin(x)/xasx → 01lim e^x - xasx → +oo+oo— its box is still unchecked on the issueMeasured rather than read off: this workspace has had recorded verdicts turn out stale seven times, so an old checklist is a hypothesis.
Why tests rather than just closing it
An issue's list is not a test. Closing #231 on three passing examples leaves nothing that fails if one of them stops working — and a limit solver is a search over several methods, where which one answers depends on the shape of the input. Three cases say almost nothing about the capability.
So the file covers twenty, chosen to exercise different paths rather than to be numerous:
(1 + 2/x)^x → e^2,(1 + 1/x)^(2x) → e^2— so a rule is applied rather than a value recognised(1 + 1/x)^(x^2) → +oox - ln(x),e^x - x^2x^2/e^x → 0,e^x/x^100 → +oosqrt(x^2 + x) - x → 1/2sin(1/x)·x → 1(sin(x) - x)/x^3 → -1/6,(1 - cos(x))/x^2 → 1/2(2^x - 1)/x → ln(2),arctan(x) → pi/2One thing worth stating
x * ln(x)andx^xat zero answerNaNtwo-sided, and answer correctly —0and1— one side at a time. That is a decision, not a gap:ln(x)is not real to the left of zero, so there is no two-sided limit to report, andOneSidedLimitTestalready records the reasoning.It is pinned in both directions here, so that "does not answer" and "answers correctly" cannot later be mistaken for one another by someone reading only the two-sided result.
Failed: 0, Passed: 23on net10.0, against cleanmaster— these pin existing behaviour and depend on nothing else in flight.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura