Repository navigation
Ask the whole limit of an indeterminate quotient a function holds - #2358
Merged
Rafael-SOWNet merged 1 commit intoNov 4, 2026
Merged
Rafael-SOWNet merged 1 commit into
Rafael-SOWNet merged 1 commit into
Conversation
A function of a quotient took the quotient's limit from the descent alone, which reads 0/0 or oo/oo off the two parts as NaN -- the claim that there is no limit -- where only the descent cannot tell. sin(x)/x at 0 is 1, which the whole limit reaches through the first remarkable limit; (sin(x)/x)^2, exp(sin(x)/x), sin(sin(x)/x) and exp((cos(x) - 1)/x^2) came out NaN two-sided and unevaluated from either side. 2.6.0 answers the same. Where the descent of a quotient would return NaN for an indeterminate form and nothing else answers, the quotient's whole limit is asked once, and only a value is taken. Three things keep it from costing what it answers: - One level: no whole limit is asked inside another. - Not under a caller's budget of limits, which it would spend. - The form a limit comes back in can hold the infinity it was taken at: -4/9 * 0 * (1 - (1 + (1/+oo)^2)^(1/3)), handed on as written, left a definite integral across 0 unevaluated. It is folded first, which makes it 0 and ln(2) * 2^(1/+oo) ln(2), and taken as its number only where an infinity is still in it. limitcheck on SEED=14 and 16, and at DEPTH=3 on 19 and 23, gains cos(sin(x)/x), (x/arctan(x))^3 and 1/(x/abs(x)) at 0, each agreeing with the values, and no limit of another value. 4180 limit and integration tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files
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
an-indeterminate-quotient-inside-a-function-is-asked-whole
branch
November 4, 2026 01:48
Rafael-SOWNet
added a commit
that referenced
this pull request
Nov 4, 2026
The second remarkable limit writes a 1^oo power f^g as e^(g (f - 1)), and the product in its exponent the descent read as 0 * oo, NaN, the claim that there is no limit. Only a base of 1 plus a polynomial was answered, by another route: (cos(x))^(1/x^2) at 0, which is e^(-1/2), was NaN, and from the right unevaluated. 2.6.0 answers the same. The exponent is (f - 1) / (1/g) now, a 0/0 that a function of an indeterminate quotient asks whole since #2358. Asking a product whole in the descent instead answered these too, and also answered x * ln(x) at 0 two-sided with 0, which the two-sided reading keeps NaN, its left side not being real; the quotient keeps that convention. limitcheck on SEED=14 and 16, and at DEPTH=3 on 19 and 23, is master's exactly; 4194 limit, integration and remarkable-limit tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 while checking a limit limitcheck reported. No issue was filed.
(sin(x)/x)^2NaN1exp(sin(x)/x)NaNelimitright(exp(sin(x)/x), x, 0)esin(sin(x)/x)NaNsin(1)exp((cos(x) - 1)/x^2)NaNe ^ (-1/2)sin(x)/x,exp(x/x),(2^x - 1)/x1,e,ln(2)A function of a quotient took the quotient's limit from the descent alone. The descent reads 0/0 or oo/oo off the two parts as NaN, the claim that there is no limit, where it only cannot tell. The whole limit reaches
sin(x)/x= 1 through the first remarkable limit, but a function wrapped round it never asked the whole limit. Sums and products of it already worked.The change. Where a quotient's descent would return NaN for an indeterminate form and nothing else answers, the quotient's whole limit is asked once, and only a value is taken; otherwise what was answered is kept. So the change can turn a NaN from 0/0 or oo/oo into a value, and nothing else. Three things keep it from costing what it answers, each found by the suite:
remainingLimits), which it would spend.-4/9 * 0 * (1 - (1 + (1/+oo)^2)^(1/3))for a quotient in a definite integral's antiderivative. Handed on as written, it leftintegral(1/((1 + x^2)^(1/3) (9 + x^2)), x, -1, 1)unevaluated after two minutes, where master gives it in 4 s. Folded, that form is0, andln(2) * 2^(1/+oo)isln(2). A form is taken as its number only where an infinity is still in it.limitcheck at
SEED=14and16, and atDEPTH=3on19and23(the last rebased onto #2357), gainscos(sin(x)/x),(x/arctan(x))^3and1/(x/abs(x))at 0 from each side, each agreeing with the values. It has the same number of limits of another value as master on every seed, and fewer NaNs where the values settle. 4180 limit and integration tests pass.Still NaN, and not reached by this: the 1^oo powers
(cos(x))^(1/x^2)and(sin(x)/x)^(1/x^2), which take the indeterminate-power route.Tests:
AFunctionOfAnIndeterminateQuotientTest, 8 cases. 6 fail on master; the 2 controls pass on both. The full suite, AOT and the nine harnesses pass. There is a BREAKING-CHANGES entry, measured on 2.6.0.🤖 Generated with Claude Code