Repository navigation
Commit 9d2b01a
authored
Answer the indeterminate forms that are not quotients (#710)
Of the three indeterminate powers only 1^oo had a rule, the second remarkable
limit. 0^0 and oo^0 reached the descent, which substitutes each part's own limit
and hands back 0^0, that is NaN -- the claim that the limit does not exist. And
a product of something vanishing with something diverging had no reading either,
unless one of its factors happened to be written as a reciprocal.
Both go over to e^(g * ln f) and to the diverging factor over the reciprocal of
the vanishing one, which is the textbook move in each case.
The exponent is asked as a limit of its own rather than rewritten in place. A
rewrite would only hand the descent a product it reads no better than the power,
since the descent substitutes the parts' limits and does not apply l'Hopital's
rule to a part; asking outright is what puts the whole machinery behind it.
Two guards, both from measurement rather than caution:
The reciprocal split keeps precedence where it gives the rule a quotient it
can use, since x * e^(-x) comes out as the clean x / e^x and inverting the
other half instead does not terminate. But it can also hide the indeterminacy
it was meant to expose -- tan(x) * ln(x) splits into sin(x) * ln(x) / cos(x),
whose divisor tends to 1 -- so it is used only when what it produces is 0/0 or
oo/oo.
A base the library cannot differentiate is declined. Every route out of ln(f)
runs through differentiating f, and a factorial's derivative wants the digamma
function and comes back NaN, so lim x->+oo ((x!) / x^x)^(1/x) had no answer
either way and took twenty seconds not to find one.
x^x at 0 keeps having no two-sided limit, which is right rather than a gap: x^x
is not real to the left of 0, so the 1 that comes back from that side is the
complex continuation and not a limit to agree with. The suite pinned that
already and it still holds.
19 of 20 measured cases, against 9 before. tan(x) * ln(x) is the one left: it
arrives restructured as a quotient rather than a product, so the product reading
never sees it. It is NaN on master too.
25 new tests; suite 4597 passed, 0 failed; corpus 111/117 with 0 wrong, 0 error
and 0 timeout.1 parent 70fcbea commit 9d2b01a
3 files changed
Lines changed: 241 additions & 3 deletions
File tree
- Sources
- AngouriMath/Functions/Continuous/Limits
- Solvers
- Tests/UnitTests/Calculus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| 132 | + | |
| 133 | + | |
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
55 | 114 | | |
56 | 115 | | |
57 | 116 | | |
| |||
248 | 307 | | |
249 | 308 | | |
250 | 309 | | |
251 | | - | |
| 310 | + | |
252 | 311 | | |
253 | 312 | | |
254 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
255 | 321 | | |
256 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
257 | 326 | | |
258 | 327 | | |
259 | 328 | | |
| |||
277 | 346 | | |
278 | 347 | | |
279 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
280 | 399 | | |
281 | 400 | | |
282 | 401 | | |
| |||
304 | 423 | | |
305 | 424 | | |
306 | 425 | | |
307 | | - | |
| 426 | + | |
308 | 427 | | |
309 | 428 | | |
310 | 429 | | |
| |||
| 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 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
0 commit comments