Repository navigation
Commit f86d0a2
Turn l'Hôpital away from a quotient whose whole powers grow (#2357)
GrewTooMuch turned the rule away where a quotient grew in nodes, and a
chain whose divisor is a reciprocal power, x^n / (1 / g^k), grows in its
exponents instead: the derivative of 1/g^k is over g^(2k), so k doubled
at each step with the node count flat, and the inner limits expanded the
powers. The limit of (-ln(2)/ln(x))^(e^x - 1) at 0 from the right went
6, 12, 24, ... and did not finish in ten minutes; it is 1, which 2.6.0
answered and #2306 stopped answering (bisected: #2306's factor taken out
of a sum changed the route into this chain). The spelling with log(x, 1/2)
and sgn(x) was 0 in 2.6.0 and hung on master.
The sum of the whole exponents is measured as the nodes are, with the
same room, the larger of eight more and three fifths again: a chain that
is getting somewhere lowers its degrees. Both limits are 1, in 6 s and
3.4 s. limitcheck at SEED=16, and at DEPTH=3 on SEED=19 and 23, changes
only the limit that did not finish; 752 limit tests pass.
Give the l'Hopital chain test five minutes, far from the runner and the hang
The 0^0 limit takes about 6 s here and past a minute on CI's Windows
runner, whose suite took 19 m 54 s against 7 m; a minute's cap measured
the runner. Before the fix it did not finish in ten minutes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 195da7f commit f86d0a2
3 files changed
Lines changed: 77 additions & 1 deletion
File tree
- Sources
- AngouriMath/Functions/Continuous/Limits
- Tests/UnitTests/Calculus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
354 | 368 | | |
355 | 369 | | |
356 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | | - | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1268 | 1284 | | |
1269 | 1285 | | |
1270 | 1286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments