Repository navigation
Leave out of l'Hopital's rule what only makes the derivatives larger - #2377
Merged
Rafael-SOWNet merged 1 commit intoNov 7, 2026
Merged
Conversation
The rule differentiates the whole of each side, and the product rule carries every factor beside the one it differentiates. A factor that only settles at a number, or a polynomial written on both sides, makes each round larger, and with tanh written through exponentials ln(x + tanh(x)) / ln((x - pi)^2) at +oo, which is 1/2, did not finish. At an infinity a factor tending to a finite non-zero number is replaced by that number, as a continuous factor at a finite point already was; a polynomial on both sides is divided out when both still depend on x; and the quotient of two logarithms uses the finite non-zero limits of its four parts. The growth bound at an infinity measures what is differentiated, not the factors taken out. limitcheck DEPTH=3, 39 seeds: five limits that did not finish in 5 s are answered, all correct; nothing else moved on a quiet rerun. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2377 +/- ##
==========================================
- Coverage 86.77% 86.75% -0.02%
==========================================
Files 312 312
Lines 68987 69033 +46
Branches 20112 20133 +21
==========================================
+ Hits 59863 59893 +30
- Misses 4918 4931 +13
- Partials 4206 4209 +3
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
feature/take-out-a-settling-factor-at-an-infinity
branch
November 7, 2026 01:57
This was referenced Nov 7, 2026
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.
l'Hopital's rule differentiates the whole of each side, and the product rule carries every factor beside the one it differentiates. A factor that only settles at a number, or a polynomial written on both sides, makes each round of derivatives larger, and with
tanhwritten through exponentials some limits never finished.ln(x + tanh(x)) / ln((x - pi)^2)at +oo, which is 1/2, was still running after a minute.Three changes, all in the limit code:
xafterwards. A factor that is 0 everywhere is not cancelled:(x - x) sin(x) / ((x - x) x)at 0 stays NaN.x + tanh(x)tends to 2, and carrying it whole is what did not finish.At an infinity the growth bound now measures what is actually differentiated, not the factors taken out. Without that,
log(x, 1/2)^(e^x - sgn(x))at 0+ went from 0.4 s to 9 s. At a finite point the bound is unchanged.ln(tanh(x) + x) / ln((x - pi)^2)at +oo1/2ln(tanh(x) + x) / ln(x - pi)at +oo1ln(arctan(x) + x) / ln(x)at +oo1tanh(x) * x / (x + tanh(x))at -oo-1Measured
DEPTH=3, across 39 seeds against master: five limits that did not finish in 5 s are answered, all correct. Examples aresinh(pi x) (1/x - 1)at 0,log(x + pi + erf(x), x^2 - tanh(-1))at +oo andlog((x - pi)^2, x + tanh(x))at +oo.log(x, 1/2)^(e^x - sgn(x))at 0+,x log(2 + x, x^3)at 0 from each side,(cos(x) sqrt(x))^arctan(tanh(x))at 0+ andsinh(x)^3^tan(x)at 0-. Probed alone, each takes the same time on both builds: 2 s, 2.5 s, 7 s (unevaluated on both) and 74 ms. Rerun quietly, those four seeds report the same on both arms.Still open, on master too
tanh(x) * x / (x + tanh(x))andln(tanh(x) + x^2) / ln(x)at +oo do not finish.Simplifywritestanhthroughe^(2x), which grows without bound, so no factor settles.sinh(x)^3 ^ tan(x)at 0 from the left answers 0, where the values approach 1.Found by limitcheck at
DEPTH=3; no issue was filed.🤖 Generated with Claude Code