Repository navigation
Commit a8a2b7e
A root the substitution search would write through i is kept, and the cube is answered too (#1552)
* A substitution that brings in the imaginary unit is passed over
Under a candidate `u`, the substitution search simplifies the rewritten integrand
one level, and that writes `sqrt(-u)` as `i sqrt(u)`: the other root wherever u
is negative. `sqrt(a + b sech(x)) tanh(x)^5` meets it with `u = tanh(x)^2 - 1`,
negative everywhere, and was answered through `i`, off at every real point, and
then declined by the tangent substitution's check. A candidate whose integrand
holds the imaginary unit where the integrand did not is now passed over, and the
search goes on to one under which the root stays real.
The cube, `sqrt(a + b sech(x)) tanh(x)^3`, is still declined, as on master, and is
left for a follow-up.
Measured against master 40b7e58, together with the other two fixes opened
beside it: a sample of families 1 to 7 (912 problems) 764 solved on both,
row for row, and family 0 1750/1814 on both, 0 wrong.
Part of #1370.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* A candidate's integrand keeps its root where simplifying would write it through i
The cube, `sqrt(a + b sech(x)) tanh(x)^3`, was still declined. Under
`u = tanh(x)^2 - 1` the one-level simplification of its integrand in u went one
step further than the fifth power's, from `sqrt(-u)` to `i sqrt(u)`, so the
candidate was passed over, where the fifth power's kept `sqrt(-u)` and was
answered through it. Each one-level simplification of a candidate's integrand
now keeps the integrand as written where the simplified one would hold the
imaginary unit and neither the written one nor the integrand in x does. Both
powers are answered and differentiate back.
Closes #1370.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 882c1eb commit a8a2b7e
3 files changed
Lines changed: 57 additions & 16 deletions
File tree
- Sources
- AngouriMath/Functions/Continuous/Integration
- Tests/UnitTests/Calculus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
1271 | 1286 | | |
1272 | 1287 | | |
1273 | 1288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18278 | 18278 | | |
18279 | 18279 | | |
18280 | 18280 | | |
| 18281 | + | |
| 18282 | + | |
| 18283 | + | |
| 18284 | + | |
| 18285 | + | |
| 18286 | + | |
| 18287 | + | |
| 18288 | + | |
| 18289 | + | |
| 18290 | + | |
| 18291 | + | |
| 18292 | + | |
| 18293 | + | |
| 18294 | + | |
| 18295 | + | |
| 18296 | + | |
| 18297 | + | |
| 18298 | + | |
| 18299 | + | |
| 18300 | + | |
| 18301 | + | |
| 18302 | + | |
18281 | 18303 | | |
18282 | 18304 | | |
18283 | 18305 | | |
| |||
18394 | 18416 | | |
18395 | 18417 | | |
18396 | 18418 | | |
18397 | | - | |
18398 | | - | |
| 18419 | + | |
18399 | 18420 | | |
18400 | 18421 | | |
18401 | 18422 | | |
| |||
18434 | 18455 | | |
18435 | 18456 | | |
18436 | 18457 | | |
18437 | | - | |
18438 | | - | |
| 18458 | + | |
18439 | 18459 | | |
18440 | 18460 | | |
18441 | 18461 | | |
| |||
18445 | 18465 | | |
18446 | 18466 | | |
18447 | 18467 | | |
18448 | | - | |
18449 | | - | |
| 18468 | + | |
18450 | 18469 | | |
18451 | 18470 | | |
18452 | 18471 | | |
| |||
18467 | 18486 | | |
18468 | 18487 | | |
18469 | 18488 | | |
18470 | | - | |
18471 | | - | |
| 18489 | + | |
18472 | 18490 | | |
18473 | 18491 | | |
18474 | 18492 | | |
| |||
18487 | 18505 | | |
18488 | 18506 | | |
18489 | 18507 | | |
| 18508 | + | |
| 18509 | + | |
| 18510 | + | |
| 18511 | + | |
| 18512 | + | |
| 18513 | + | |
| 18514 | + | |
18490 | 18515 | | |
18491 | 18516 | | |
18492 | 18517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
531 | 534 | | |
532 | | - | |
| 535 | + | |
533 | 536 | | |
534 | | - | |
535 | | - | |
536 | | - | |
| 537 | + | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
| |||
0 commit comments