Repository navigation
Commit 598dae9
Read the limit of a modulus as the quotient or product of moduli (#2371)
abs(1/x^pi) at 0 was NaN, the claim that the limit does not exist,
where it is +oo from both sides, as 1/abs(x)^pi is. The modulus took its
argument's limit and nothing else. To the left of 0, x^pi is complex, so
the sign 1/x^pi's divisor vanishes with could not be read: that side had
no limit, and the two-sided limit was NaN. The same on 2.6.0.
Where the argument's limit gives the modulus no value, the modulus of a
quotient is now read as the quotient of the moduli, and of a product as
the product. Both hold for complex values. Read that way, the divisor
vanishes from above, which the vanishing-divisor reading already
answers. abs(log(cos(x), -1)) at 0, which is pi / abs(ln(cos(x))), is
+oo for the same reason.
limitcheck at DEPTH=3, 21 seeds 14-51, master against this: 3 more
compared over 2 seeds, the two NaNs above answered, and nothing else
changed. Suite 18988 passed, AOT and the eight harnesses clean.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent fdc586f commit 598dae9
3 files changed
Lines changed: 79 additions & 1 deletion
File tree
- Sources
- AngouriMath/Functions/Continuous/Limits/Solvers
- Tests/UnitTests/Calculus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
502 | 519 | | |
503 | 520 | | |
504 | 521 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
543 | 560 | | |
544 | 561 | | |
545 | 562 | | |
| |||
| 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 | + | |
0 commit comments