Repository navigation
Commit ab7a8bd
An integral already being worked out is a cycle, and is declined at once (#1234)
#1233 bounded the integrator's descent, which stopped it killing the process.
That was necessary and it was not sufficient: the descent branches, so 32 levels
of a cycle is still an enormous search. Measured on Rubi's independent test
suites, problems 1400-1450 took 985 seconds under the bound alone where v2.4.0
took 44. One integrand held the run for over ten minutes.
Declining at the first repeat instead: 37 seconds over the same fifty problems,
which is v2.4.0's figure and slightly under it.
The set is keyed on the integrand with its variable renamed to one canonical
name, and that renaming is the whole point. SolveBySubstitution names each new
variable with Variable.CreateUnique, so a level and the level it came from are
alpha-equivalent rather than equal. A set keyed on the integrand as written
would never see the same entry twice -- which is exactly why the memo added in
#1157 could not stop this either, and why the first fix had to be a depth bound
rather than a visited set.
DeepestDescent stays as a backstop for anything this does not model, rather than
as the mechanism.
#1232
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 229c9ab commit ab7a8bd
1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
227 | 253 | | |
228 | 254 | | |
229 | 255 | | |
| |||
233 | 259 | | |
234 | 260 | | |
235 | 261 | | |
| 262 | + | |
236 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
237 | 278 | | |
238 | 279 | | |
239 | 280 | | |
240 | 281 | | |
241 | 282 | | |
242 | 283 | | |
243 | 284 | | |
| 285 | + | |
244 | 286 | | |
245 | 287 | | |
246 | 288 | | |
| |||
0 commit comments