You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4c3aa3b
Browse filesBrowse the repository at this point in the historyBrowse files
A negative power of a linear beside a root of another is integrated by the recurrence on the power (#1758)
1/((a + b x)^4 sqrt(c + d x)) and (p + q x + r x^2 + s x^3)/((a + b x)^5
sqrt(c + d x)) ran past the budget: the substitution for the root makes
a rational function over a power of a quadratic with symbols in it, and
its reduction grows with the power. A whole power m <= -2 of one linear
beside a power that is not whole of another, times a polynomial, is
integrated by the recurrence int L1^m L2^n = L1^(m + 1) L2^(n + 1)/((m
+ 1) D) - (m + n + 2) d/((m + 1) D) int L1^(m + 1) L2^n, the polynomial
written in powers of L1 first, down to int L2^n/L1.
Part of #718.
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1219,6 +1219,24 @@ arctangent it is ([#718](https://github.com/asc-community/AngouriMath/issues/718
1219
1219
| `"(A + B*x + C*x^2)*sqrt(c + d*x)/((a + b*x)^3*sqrt(e + f*x))".ToEntity().Integrate("x")` | `integral(...)` | the roots over powers of `a + b x`, a logarithm, and an arctangent |
1220
1220
| `"x^2*sqrt(a + 2*x)*sqrt(c - 3*x)".ToEntity().Integrate("x")` | `integral(...)` | a cubic times the two roots, and an arctangent of `sqrt(6)/2 sqrt(a + 2 x)/sqrt(c - 3 x)` |
1221
1221
1222
+
### A negative power of a linear beside a root of another is integrated by the recurrence on the power
1223
+
1224
+
**Answers where there were none, and faster ones, written differently.** `1/((a + b x)^4 sqrt(c + d x))`
1225
+
was declined by 2.5.0, and the unreleased master answered it in fourteen seconds, by the substitution
1226
+
for the root, over a power of a quadratic with symbols in it; with a cubic above it, past a minute.
1227
+
A whole power `m <= -2` of one linear beside a power that is not whole of another, times a
| `"1/((a + b*x)^4*sqrt(c + d*x))".ToEntity().Integrate("x")` | `integral(...)` | powers of `a/b + x` beside `sqrt(c + d x)`, and the arctangent or logarithm `1/((a + b x) sqrt(c + d x))` integrates to |
1237
+
| `"(p + q*x + r*x^2 + s*x^3)/((a + b*x)^5*sqrt(c + d*x))".ToEntity().Integrate("x")` | `integral(...)` | the same, term by term |
1238
+
| `"x/((a + b*x)^4*sqrt(c + d*x))".ToEntity().Integrate("x")` | `integral(...)` | the same |
1239
+
1222
1240
### A polynomial over a power of a linear beside the root of a quadratic is integrated
1223
1241
1224
1242
`P(x) Q^(m/2)/(g + h x)^k`, a polynomial over a power of a linear beside a half-odd power of a
var linears = new List<(Entity Base, Entity Exponent)>();
9455
+
Entity polynomial = Number.Integer.One;
9456
+
// The factors with their exponents, a whole power of a product read through: the question
9457
+
// comes back as `((a/b + x)^4 sqrt(c + d x))^(-1)` once a constant is out of the bar.
9458
+
var factors = new List<(Entity Base, Entity Exponent)>();
9459
+
void Gather(Entity node, int times)
9460
+
{
9461
+
switch (node)
9462
+
{
9463
+
case Mulf(var left, var right):
9464
+
Gather(left, times);
9465
+
Gather(right, times);
9466
+
break;
9467
+
case Divf(var numerator, var denominator):
9468
+
Gather(numerator, times);
9469
+
Gather(denominator, -times);
9470
+
break;
9471
+
case Powf(Mulf or Divf or Powf, Number.Integer whole) when whole.EInteger.CanFitInInt32() && System.Math.Abs(whole.EInteger.ToInt32Checked()) <= MaximumRecurrenceDepth:
9472
+
Gather(((Powf)node).Base, times * whole.EInteger.ToInt32Checked());
9473
+
break;
9474
+
case Powf(var powerBase, var power):
9475
+
factors.Add((powerBase, times == 1 ? power : (power * times).InnerSimplified));
0 commit comments