Repository navigation
Commit 9a5503e
Read a limit of a quotient over a quotient as a quotient of products (#2394)
Read a limit of a quotient over a quotient as a quotient of products
The descent read a / (b / c) as written. x^(-pi) / (ln(2) / ln(x)) at
+oo is then 0/0, and l'Hopital's rule makes each step another 0 * oo
with a higher power of ln(x), so it was left unevaluated where
x^(-pi) ln(x) / ln(2), the same function, is 0. log(x, 2) is
ln(2) / ln(x), so x^(-pi) / log(x, 2) was left unevaluated too.
Where b is a constant, the quotient is now read first as a c / b, which
it equals wherever it has a value, and that reading is kept only where
it gives one. x ln(x) at 0 comes back from the descent as 0 * (-oo),
and taking that as the answer made x / log(x, 2) from both sides of 0
NaN where it is 0; there the quotient is read as written, as before.
Over a b that is not constant, x^x / (x / x) read as x^x x / x took
twenty times as long. Found by limitcheck; no issue was filed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent d682f0d commit 9a5503e
3 files changed
Lines changed: 71 additions & 0 deletions
File tree
- Sources
- AngouriMath/Functions/Continuous/Limits/Solvers
- Tests/UnitTests/Calculus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
110 | 129 | | |
111 | 130 | | |
112 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
152 | 162 | | |
153 | 163 | | |
154 | 164 | | |
| |||
| 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 | + | |
0 commit comments