Repository navigation
Commit 4283f8b
A complex constant does not make the two sides of a limit differ (#2376)
Where the descent cannot compare the two sides of a limit, each side is
asked through the whole of the machinery, but only of an expression that
IsRealOnBothSides passes, and that check required every constant to be
real. pi^2 / log(x, -2) is pi^2 ln(x) / ln(-2), 0 from each side of 1,
and its two-sided limit was NaN. A constant is the same number on both
sides, so a complex one cannot make them differ; it is now accepted, and
what depends on x is read as before. x^x, x ln(x), x^i, i sgn(x) and
(2 + i)/x at 0 stay NaN.
limitcheck at DEPTH=3 over 39 seeds: eight two-sided NaNs answered
(0, -oo, pi/2 among them), no other move. tanh(log(x, -1) - tan(x)) at 1
is still NaN; asking both sides now takes 14 s where it took 3 s, since
each one-sided limit of it takes 4-6 s on master already.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 60e6638 commit 4283f8b
3 files changed
Lines changed: 63 additions & 3 deletions
File tree
- Sources
- AngouriMath/Functions/Continuous/Limits/Solvers
- Tests/UnitTests/Calculus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
96 | 110 | | |
97 | 111 | | |
98 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
220 | 224 | | |
221 | | - | |
| 225 | + | |
222 | 226 | | |
223 | 227 | | |
224 | 228 | | |
| |||
| 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