Repository navigation
Commit 16203aa
A constant of integration is matched to a linear divisor with a symbol in it (#1642)
By parts against a polynomial chooses the polynomial's antiderivative so that what the other
factor's derivative divides by divides it too: against x ln(1 + x) the antiderivative of x is
(x^2 - 1)/2, and the remainder is a polynomial. That was done where the division left a number
over, and a + b x leaves a symbol: x^2/2 over a + b x leaves a^2/(2 b^2), so x Shi(a + b x)^2 kept
x^2/(a + b x) in its remainder and nothing read it. The antiderivative less its value at the root,
-a/b, is divisible by the linear, and it is written now as the linear times the quotient, so that
the linear cancels as written: x Shi(a + b x)^2 and x Ei(a + b x)^2 are two rounds of parts each.
Measured on the Rubi corpus, master at 6c94652 and this change on it, run side by side: family 8
373 -> 376 of 420 (x Ei, x Shi and x Chi of a + b x, squared); family 2 544 of 650, the independent
suites 1756 of 1814 and families 1 and 3 to 7 at five a file 800 of 897, on both. 0 wrong
everywhere. Run alone, the three are 0 of 3 on master and 3 of 3 here; the fourth problem that
moved, 2.3 #622, is 22 s unevaluated on both. The unit tests pass, 14,259.
The performance gate passes on d480366e, which is this change on 6c94652: allocation is what the
baseline says on all 19 gated benchmarks.
SpecialFunctionsByPartsTest has two rows with a shifted argument, each differentiated back with its
parameters pinned.
Part of #1501.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 8e0bb15 commit 16203aa
3 files changed
Lines changed: 44 additions & 0 deletions
File tree
- Sources
- AngouriMath/Functions/Continuous/Integration
- Tests/UnitTests/Calculus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2315 | 2315 | | |
2316 | 2316 | | |
2317 | 2317 | | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
2318 | 2338 | | |
2319 | 2339 | | |
2320 | 2340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1691 | 1691 | | |
1692 | 1692 | | |
1693 | 1693 | | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
1694 | 1707 | | |
1695 | 1708 | | |
1696 | 1709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
136 | 147 | | |
137 | 148 | | |
0 commit comments