Repository navigation
Commit 882c1eb
Newton's solver, the spurious-root filter and Gruntz without catch-alls (#1568)
Six catches wrapped code that declines by returning NaN, null or false
already: four in Newton's solver (one catching an OverflowException that
System.Numerics.Complex arithmetic does not throw), the spurious-root filter's
residual check, and the Gruntz limit's entry. Each site was instrumented and
logged every exception it caught, over the whole unit suite and a 598-problem
sample of Rubi's families 0 to 8: none caught anything. They go, so that a
defect below them reaches the caller instead of reading as a decline, and so
does the OperationCanceledException that four of them took for one. A
residual Newton cannot rank, one that is not a finite number, still ranks
last, now by a test rather than a catch.
The unit tests pass (net10.0, 13354), every target builds, and the allocation
gate passes.
Closes #1547.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent e9aee49 commit 882c1eb
3 files changed
Lines changed: 21 additions & 40 deletions
File tree
- Sources/AngouriMath/Functions/Continuous
- Limits/Gruntz
- Solvers
- EquationSolver
- NumericalSolving
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 82 | + | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
138 | 133 | | |
139 | 134 | | |
140 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 45 | + | |
| 46 | + | |
55 | 47 | | |
56 | | - | |
| 48 | + | |
57 | 49 | | |
58 | 50 | | |
59 | 51 | | |
| |||
146 | 138 | | |
147 | 139 | | |
148 | 140 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 141 | + | |
152 | 142 | | |
153 | 143 | | |
154 | 144 | | |
| |||
215 | 205 | | |
216 | 206 | | |
217 | 207 | | |
| 208 | + | |
218 | 209 | | |
219 | 210 | | |
220 | | - | |
221 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
222 | 216 | | |
223 | 217 | | |
224 | 218 | | |
| |||
277 | 271 | | |
278 | 272 | | |
279 | 273 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
288 | 277 | | |
289 | 278 | | |
290 | 279 | | |
| |||
0 commit comments