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 136e36b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1745,6 +1745,21 @@ quadratic alone, or beside a polynomial only, is left to the rules that answered
1745
1745
|`"x^2*sinh(a + b*x + c*x^2)^2".Integrate("x")`|`integral(x ^ 2 * ((e ^ (a + b * x + c * x ^ 2) - e ^ (-(a + b * x + c * x ^ 2))) / 2) ^ 2, x)`| the antiderivative |
1746
1746
|`"2^(x^2)*3^(x + 1)".Integrate("x")`|`integral(2 ^ x ^ 2 * 3 ^ (x + 1), x)`| the antiderivative, with `erfi`|
1747
1747
1748
+
### An exponential of a quadratic in a logarithm beside a power of `x` is integrated
1749
+
1750
+
`e^(ln(x)^2)` was left unintegrated. `x^p G^(Q(L))`, where `L` is `ln(c x^r)` and `Q` a quadratic
1751
+
with a square term, is now integrated under `t = L`, where it is the Gaussian with a linear term. A
1752
+
polynomial beside it is summed a power at a time, and the logarithm of a power of a linear is the
|`"e^(ln(x)^2)".Integrate("x")`|`integral(e ^ ln(x) ^ 2, x)`| the antiderivative, with `erfi`|
1759
+
|`"x^2*F^(f*(a + b*ln(c*x^n))^2)".Integrate("x")`|`integral(x ^ 2 * F ^ (f * (a + b * ln(c * x ^ n)) ^ 2), x)`| the antiderivative |
1760
+
|`"(d*g + k*g*x)^m*F^(f*(a + b*ln(c*(d + k*x)^n))^2)".Integrate("x")`|`integral((d * g + k * g * x) ^ m * F ^ (f * (a + b * ln(c * (d + k * x) ^ n)) ^ 2), x)`| the antiderivative |
1761
+
|`"(g + h*x)^3*F^(f*(a + b*ln(c*(d + k*x)^n)^2))".Integrate("x")`|`integral((g + h * x) ^ 3 * F ^ (f * (a + b * ln(c * (d + k * x) ^ n) ^ 2)), x)`| the antiderivative |
1762
+
1748
1763
### A power of `x` one less than a half-odd multiple of the power inside is integrated
1749
1764
1750
1765
`f^(a + b x^n) x^(-1 + 5n/2)` was left unintegrated. `x^(k n - 1) g(x^n)`, with a symbolic `n`, was
if (@base is null || exponent is null || !exponent.ContainsNode(logarithm))
9121
+
return null;
9122
+
var t = Variable.CreateUnique(expr, "t");
9123
+
var inT = exponent.Replace(node => node == logarithm ? t : node);
9124
+
if (inT.ContainsNode(x) || !TreeAnalyzer.TryGetPolyQuadratic(inT, t, out var square, out _, out _) || TreeAnalyzer.IsZero(square))
9125
+
return null;
9126
+
var rate = Functions.PartialFractions.Bare((logarithm.Differentiate(x) * x).Simplify());
9127
+
if (rate.ContainsNode(x) || rate.Evaled is Number.Complex { IsZero: true } || rate.Nodes.Any(node => node == MathS.NaN))
9128
+
return null;
9129
+
var exponentInT = @base == MathS.e ? inT : inT * MathS.Ln(@base);
9130
+
p = (p ?? Number.Integer.Zero).InnerSimplified;
9131
+
if (polynomial is null)
9132
+
return ExponentialOfAQuadraticInALogarithmTerm(p, exponentInT, t, logarithm, rate, x) is { } single ? (constant * single).InnerSimplified : null;
9133
+
Entity sum = Number.Integer.Zero;
9134
+
foreach (var monomial in polynomial)
9135
+
{
9136
+
if (ExponentialOfAQuadraticInALogarithmTerm((p + Number.Integer.Create(monomial.Key)).InnerSimplified, exponentInT, t, logarithm, rate, x) is not { } term)
9137
+
return null;
9138
+
sum += monomial.Value * term;
9139
+
}
9140
+
return (constant * sum).InnerSimplified;
9141
+
}
9142
+
9143
+
/// <summary>
9144
+
/// The integral of <c>x^q e^(E(L))</c>, where <paramref name="exponentInT"/> is <c>E</c> in
9145
+
/// <paramref name="t"/> standing for <paramref name="logarithm"/> and <c>L' = s/x</c>: see
0 commit comments