Skip to content

Commit dcf5ba7

Browse files
A special function of a logarithm of a monomial is integrated, through Ei of a complex argument (#1645)
(e x)^m Si(d (a + b ln(c x^n))) is by parts against (e x)^m, and what is left is a power of x times sin(d (a + b ln(c x^n)))/(a + b ln(c x^n)). Two rules were missing on the way, and both are here. A power of x times a function of one logarithm of a monomial, x^m G(ln(c x^n)), is integrated under t = ln(c x^n). dx is x dt/n, and x^(m + 1) is K e^((m + 1) t/n), where K = x^(m + 1) (c x^n)^(-(m + 1)/n) has derivative 0 wherever it is defined. So the answer is K/n times the integral of e^((m + 1) t/n) G(t) at t = ln(c x^n), an antiderivative wherever the integrand is real. For an even n that includes negative x, where ln(c x^n) is not ln(c) + n ln(x) and an answer through ln(x) would be off by a branch. A power of a monomial, (e x)^m, is x^m times a factor of the same kind. Rubi's answers to 8.3 to 8.5 are written in this K. The integral in t is asked as one quotient, as the logarithm substitution asks its own: as a product, (d x)^m x/ln(b x) handed over e^((m + 2) t) t^(-1), which ran away in integration by parts (#1646). As a quotient it is Ei((m + 2) t) at once, and (d x)^m li(b x) is answered too, since by parts leaves (d x)^m x/ln(b x) of it. And an exponential times sines and cosines of linears over linears: each sine and cosine is written as exponentials, the product multiplied out, and every term is an exponential with a complex rate over the linears, which the exponential rules answer with Ei of a complex argument. e^(2x) sin(x)/x is (Ei((2 + i) x) - Ei((2 - i) x))/(2i), two conjugate terms whose sum is real. Only with an exponential beside the sine or cosine: sin(x)/x alone stays Si(x). The evaluator reads Ei, Si and erf off the real line already, so these answers are checked like any other. Measured on the Rubi corpus, master at 492afc2 and this change on it, run side by side: family 8 395 -> 411 of 420, all fifteen of F(d (a + b ln(c x^n))) -- Ei, Shi and Chi beside (e x)^m, and Si and Ci alone, beside x, x^2 and (e x)^m, and over x^2 and x^3 -- and (d x)^m li(b x). Family 4 at ten a file 611 -> 612, the one being cos(a + b ln(c x^n))^2. Family 2 is 544 of 650 on both, family 3 at twenty a file 171 of 180, the independent suites 1756 of 1814, and families 1, 5, 6 and 7 at five a file 437 of 499. 0 wrong everywhere. Run alone, the seventeen are 0 of 17 on master and 17 of 17 here. The unit tests pass, 14,275, with the GC heap held to 4 GB, and the performance gate passes on 6a4b09c, which is this change on 492afc2: allocation is what the baseline says on all 19 gated benchmarks. ExponentialIntegralIntegrationTest has three rows of an exponential beside a sine or cosine over a linear, and four of a function of a logarithm of a monomial, checked at negative x as well with n = 2, and (k x)^m x/ln(b x) past 1. SpecialFunctionsByPartsTest checks (d x)^m li(b x) at positive points, where li(b x) is real. Part of #1501. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 59cf978 commit dcf5ba7

5 files changed

Lines changed: 247 additions & 0 deletions

File tree

‎BREAKING-CHANGES.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,6 +2381,30 @@ family 3 at twenty a file and a sample of the others are answered alone as they
23812381
|---|---|---|
23822382
| `"li(b*x)/x".Integrate("x")` | `li * b * x + C`, with `li` a variable | `li(b * x) * ln(b * x) - b * x + C` |
23832383

2384+
### A special function of a logarithm of a monomial is integrated, through `Ei` of a complex argument
2385+
2386+
`(e x)^m Si(d (a + b ln(c x^n)))` is by parts against `(e x)^m`, and what is left is a power of `x`
2387+
times `sin(d (a + b ln(c x^n)))/(a + b ln(c x^n))`. Two rules were missing on the way
2388+
([#1501](https://github.com/asc-community/AngouriMath/issues/1501)):
2389+
2390+
- **A function of one logarithm of a monomial.** A power of `x` times `G(ln(c x^n))` is integrated
2391+
under `t = ln(c x^n)`, with `x^(m + 1)` written as `K e^((m + 1) t/n)` and
2392+
`K = x^(m + 1) (c x^n)^(-(m + 1)/n)`, whose derivative is 0 wherever it is defined. That is an
2393+
antiderivative wherever the integrand is real. For an even `n` that includes negative `x`, where
2394+
`ln(c x^n)` is not `ln(c) + n ln(x)`. By parts leaves `(d x)^m x/ln(b x)` of `(d x)^m li(b x)`,
2395+
and this rule answers it with `Ei((m + 2) ln(b x))`.
2396+
- **An exponential beside a sine or cosine, over linears.** Each sine and cosine is written as
2397+
exponentials, and each term is the exponential integral of a complex argument. The two conjugate
2398+
terms add up to a real value.
2399+
2400+
Both columns measured on a build, `v2.5.0` against this change.
2401+
2402+
| Input | Was (2.5.0) | Now |
2403+
|---|---|---|
2404+
| `"e^(2*x)*sin(x)/x".Integrate("x")` | `integral(e ^ (2 * x) * sin(x) / x, x)` | `(-1/2 * i) * Ei((2 + i) * x) + 1/2 * i * Ei((2 - i) * x) + C` |
2405+
| `"x*sin(ln(x))/ln(x)".Integrate("x")` | `integral(x * sin(ln(x)) / ln(x), x)` | `(-1/2 * i) * Ei((2 + i) * ln(x)) + 1/2 * i * Ei((2 - i) * ln(x)) + C` |
2406+
| `"cos(a+b*ln(c*x^n))^2".Integrate("x")` | `integral(cos(a + b * ln(c * x ^ n)) ^ 2, x)` | an antiderivative in `sin` and `cos` of `2 (a + b ln(c x^n))`, beside `x (c x^n)^(-1/n)` |
2407+
23842408
### An exponential or a hyperbolic function over several linears is split into partial fractions over them
23852409

23862410
`e^x/(x (x + 1))` was left unevaluated, where `e^x/x` and `e^x/(x + 1)` were each answered with

‎Sources/AngouriMath/Functions/Continuous/Integration/IndefiniteIntegralSolver.cs‎

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3978,6 +3978,99 @@ bool Read(Entity factor, int times)
39783978
return Functions.PartialFractions.Bare((constant * sum).InnerSimplified);
39793979
}
39803980

3981+
/// <summary>
3982+
/// An exponential of a linear times sines and cosines of linears, and a polynomial, over
3983+
/// linears: each sine and cosine is written as exponentials, <c>sin(c x) = (e^(i c x) - e^(-i c x))/(2i)</c>,
3984+
/// the product multiplied out, and every term is an exponential of a linear with a
3985+
/// complex rate over the linears, which <see cref="SolveAnExponentialOfALinearOverAPowerOfALinear"/>
3986+
/// and <see cref="SolveAnExponentialOverSeveralLinears"/> answer with the exponential
3987+
/// integral of a complex argument. <c>e^(2x) sin(x)/x</c> is
3988+
/// <c>(Ei((2 + i) x) - Ei((2 - i) x))/(2i)</c>, real where <c>x</c> is: the two terms are
3989+
/// conjugates. What by parts leaves of <c>Si(ln(x))</c>, under <c>t = ln(x)</c>, is
3990+
/// <c>e^t sin(t)/t</c>. Rubi's 8.4, <c>(e x)^m Si(d (a + b ln(c x^n)))</c>, answers the same way.
3991+
/// https://github.com/asc-community/AngouriMath/issues/1501
3992+
/// </summary>
3993+
/// <remarks>
3994+
/// Only with an exponential of a real rate beside the sine or cosine: alone over a linear,
3995+
/// the sine and cosine integrals are their closed form, and the rule for them answers.
3996+
/// </remarks>
3997+
internal static Entity? SolveAnExponentialTimesATrigonometricOverLinears(Entity expr, Entity.Variable x)
3998+
{
3999+
if (expr is not (Divf or Mulf))
4000+
return null;
4001+
int exponentialsByShape = 0, trigonometricsByShape = 0;
4002+
var aPowerOfASumByShape = false;
4003+
CountFactorsByShape(expr, x, ref exponentialsByShape, ref trigonometricsByShape, ref aPowerOfASumByShape);
4004+
if (exponentialsByShape == 0 || trigonometricsByShape == 0)
4005+
return null;
4006+
Entity constant = Number.Integer.One;
4007+
Entity? polynomial = null;
4008+
var linears = new List<(Entity Linear, int Power)>();
4009+
var exponents = new List<WrittenExponent>();
4010+
var terms = new List<(Entity Coefficient, int[] Multiples)> { (Number.Integer.One, new int[MostExponents]) };
4011+
int exponentials = 0, trigonometrics = 0;
4012+
foreach (var (factor, underneath) in FactorsOfTheIntegrand(expr))
4013+
{
4014+
if (!factor.ContainsNode(x))
4015+
{
4016+
constant = underneath ? constant / factor : constant * factor;
4017+
continue;
4018+
}
4019+
var (@base, exponent) = factor is Powf(var raised, Number.Integer whole) && whole.EInteger.CanFitInInt32() && !whole.EInteger.IsZero
4020+
? (raised, whole.EInteger.ToInt32Checked()) : (factor, 1);
4021+
if (underneath && TreeAnalyzer.TryGetPolyLinear(@base, x, out var slopeOfIt, out _) && !TreeAnalyzer.IsZero(slopeOfIt))
4022+
{
4023+
var at = linears.FindIndex(pair => pair.Linear == @base);
4024+
if (at < 0)
4025+
linears.Add((@base, exponent));
4026+
else
4027+
linears[at] = (@base, linears[at].Power + exponent);
4028+
continue;
4029+
}
4030+
if (underneath)
4031+
return null;
4032+
if (AsExponentialsOfQuadratics(factor, x, exponents) is { } read)
4033+
{
4034+
if (factor.Nodes.Any(node => node is Sinf or Cosf))
4035+
trigonometrics++;
4036+
else
4037+
exponentials++;
4038+
if (Multiplied(terms, read) is not { } product)
4039+
return null;
4040+
terms = product;
4041+
continue;
4042+
}
4043+
if (TreeAnalyzer.TryGetPolynomial(factor, x, out var monomials) && monomials.Keys.All(degree => degree.Sign >= 0 && degree.CompareTo(EInteger.FromInt32(12)) <= 0))
4044+
{
4045+
polynomial = polynomial is null ? factor : polynomial * factor;
4046+
continue;
4047+
}
4048+
return null;
4049+
}
4050+
if (exponentials == 0 || trigonometrics == 0 || linears.Count == 0 || linears.Count > 4 || linears.Sum(pair => pair.Power) > 12)
4051+
return null;
4052+
var below = linears.Aggregate((Entity)Number.Integer.One, (product, pair) => product * MathS.Pow(pair.Linear, pair.Power));
4053+
var above = polynomial ?? Number.Integer.One;
4054+
Entity sum = Number.Integer.Zero;
4055+
foreach (var (coefficient, multiples) in terms)
4056+
{
4057+
var (a, b, c) = TheExponent(multiples, exponents);
4058+
// Linear exponents only: a quadratic left is the Gaussian's, and is another rule's.
4059+
if (!TreeAnalyzer.IsZero(a))
4060+
return null;
4061+
var factorOfTheTerm = TreeAnalyzer.IsZero(c) ? coefficient : coefficient * MathS.Pow(MathS.e, c);
4062+
var question = TreeAnalyzer.IsZero(b)
4063+
? above / below
4064+
: MathS.Pow(MathS.e, b * x) * above / below;
4065+
if (((TreeAnalyzer.IsZero(b) ? null
4066+
: linears.Count == 1 ? SolveAnExponentialOfALinearOverAPowerOfALinear(question, x) : SolveAnExponentialOverSeveralLinears(question, x))
4067+
?? Integration.ComputeIndefiniteIntegral(question, x, false)) is not { } integral)
4068+
return null;
4069+
sum += factorOfTheTerm * integral;
4070+
}
4071+
return Functions.PartialFractions.Bare((constant * sum).InnerSimplified);
4072+
}
4073+
39814074
/// <summary>Whether a factor of <paramref name="expr"/> is a sum with an exponential of the variable in it.</summary>
39824075
private static bool HasASumOfExponentials(Entity expr, Entity.Variable x) => expr switch
39834076
{
@@ -6614,6 +6707,93 @@ node is Logf(var @base, var argument) && !@base.ContainsNode(x) && @base != Math
66146707
: null;
66156708
}
66166709

6710+
/// <summary>
6711+
/// A power of <c>x</c> times a function of one logarithm of a monomial, <c>x^m G(ln(c x^n))</c>,
6712+
/// under <c>t = ln(c x^n)</c>: <c>dx = x dt/n</c>, and <c>x^(m + 1)</c> is
6713+
/// <c>K e^((m + 1) t/n)</c> with <c>K = x^(m + 1) (c x^n)^(-(m + 1)/n)</c>, whose derivative
6714+
/// is 0 wherever it is defined. So the answer is <c>K/n</c> times the integral of
6715+
/// <c>e^((m + 1) t/n) G(t)</c> at <c>t = ln(c x^n)</c>, an antiderivative on the whole of
6716+
/// the real line where the integrand is real -- for an even <c>n</c> that includes negative
6717+
/// <c>x</c>, where <c>ln(c x^n)</c> is not <c>ln(c) + n ln(x)</c>. A power of a monomial,
6718+
/// <c>(e x)^p</c>, is <c>x^p</c> times a factor of the same kind. What by parts leaves of
6719+
/// <c>(e x)^m Si(d (a + b ln(c x^n)))</c> is this, with <c>G(t)</c> a sine over a linear in
6720+
/// <c>t</c>. Rubi's answers to 8.3 to 8.5 are written in exactly this <c>K</c>.
6721+
/// https://github.com/asc-community/AngouriMath/issues/1501
6722+
/// </summary>
6723+
/// <remarks>
6724+
/// After <see cref="SolveByLogarithmSubstitution"/>, which answers <c>ln(x)</c> alone.
6725+
/// </remarks>
6726+
internal static Entity? SolveByAPowerAndALogarithmOfAMonomial(Entity expr, Entity.Variable x, bool integrateByParts)
6727+
{
6728+
if (!expr.Nodes.Any(node => node is Logf))
6729+
return null;
6730+
Entity constant = Number.Integer.One;
6731+
Entity m = Number.Integer.Zero;
6732+
Entity locallyConstant = Number.Integer.One;
6733+
Entity rest = Number.Integer.One;
6734+
foreach (var (factor, underneath) in FactorsOfTheIntegrand(expr))
6735+
{
6736+
if (!factor.ContainsNode(x))
6737+
{
6738+
constant = underneath ? constant / factor : constant * factor;
6739+
continue;
6740+
}
6741+
// x, a power of x, or a power of a monomial (k x)^p, p free of x.
6742+
var (@base, power) = factor is Powf(var raised, var exponent) && !exponent.ContainsNode(x) ? (raised, exponent) : (factor, (Entity)Number.Integer.One);
6743+
if (TheMonomial(@base, x) is var (coefficientOfIt, degreeOfIt) && degreeOfIt == Number.Integer.One)
6744+
{
6745+
var p = underneath ? -power : power;
6746+
m = m + p;
6747+
if (coefficientOfIt != Number.Integer.One)
6748+
locallyConstant = locallyConstant * MathS.Pow(@base, p) * MathS.Pow(x, -p);
6749+
continue;
6750+
}
6751+
rest = underneath ? rest / factor : rest * factor;
6752+
}
6753+
// One logarithm of a monomial in what is left.
6754+
var logarithms = rest.Nodes.OfType<Logf>().Where(node => node.Base == MathS.e && node.ContainsNode(x)).Distinct().ToList();
6755+
if (logarithms.Count != 1 || TheMonomial(logarithms[0].Antilogarithm, x) is not var (c, n) || TreeAnalyzer.IsZero(n))
6756+
return null;
6757+
var t = Variable.CreateUnique(expr, "t_log");
6758+
var inT = rest.Substitute(logarithms[0], t);
6759+
if (inT.ContainsNode(x))
6760+
return null;
6761+
var mPlusOne = (m + Number.Integer.One).InnerSimplified;
6762+
// One quotient, as the logarithm substitution writes its own: `e^((m + 2) t)/t` is the
6763+
// exponential integral, and as a product with `t^(-1)` it went to integration by parts.
6764+
// https://github.com/asc-community/AngouriMath/issues/1646
6765+
var integrand = Functions.SingleQuotient.Combine(inT * MathS.Pow(MathS.e, (mPlusOne / n).InnerSimplified * t)).InnerSimplified;
6766+
if (integrand is Providedf(var bare, _))
6767+
integrand = bare;
6768+
if (Integration.ComputeIndefiniteIntegral(integrand, t, integrateByParts) is not { } inTIntegral)
6769+
return null;
6770+
// Of ln(x) itself, K is 1, and written as x^(m + 1) x^(-(m + 1)) it is not seen to be.
6771+
var k = logarithms[0].Antilogarithm == x ? Number.Integer.One
6772+
: MathS.Pow(x, mPlusOne) * MathS.Pow(logarithms[0].Antilogarithm, (-mPlusOne / n).InnerSimplified);
6773+
var back = constant * locallyConstant * k / n * inTIntegral.Substitute(t, logarithms[0]);
6774+
return back.Nodes.Any(node => node == MathS.NaN) ? null : back;
6775+
}
6776+
6777+
/// <summary>
6778+
/// <paramref name="expr"/> as <c>c x^n</c>, <c>c</c> and <c>n</c> free of <paramref name="x"/>,
6779+
/// or <see langword="null"/>.
6780+
/// </summary>
6781+
private static (Entity Coefficient, Entity Degree)? TheMonomial(Entity expr, Entity.Variable x)
6782+
{
6783+
if (expr == x)
6784+
return (Number.Integer.One, Number.Integer.One);
6785+
if (expr is Powf(var @base, var power) && @base == x && !power.ContainsNode(x))
6786+
return (Number.Integer.One, power);
6787+
if (expr is Mulf(var left, var right))
6788+
{
6789+
if (!left.ContainsNode(x) && TheMonomial(right, x) is var (c, n))
6790+
return (left * c, n);
6791+
if (!right.ContainsNode(x) && TheMonomial(left, x) is var (c2, n2))
6792+
return (right * c2, n2);
6793+
}
6794+
return null;
6795+
}
6796+
66176797
/// <summary>
66186798
/// A quotient of two <b>homogeneous</b> polynomials in <c>sin(u)</c> and <c>cos(u)</c>,
66196799
/// integrated by <c>t = tan(u)</c> — which turns it into a rational function of <c>t</c>

‎Sources/AngouriMath/Functions/Continuous/Integration/Integration.Definition.cs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@ private static Entity Normalized(Entity expr, Entity.Variable x) =>
646646
// And either over several linears, split into partial fractions over them first, as the
647647
// trigonometric rule below splits.
648648
if ((answer = IndefiniteIntegralSolver.SolveAnExponentialOverSeveralLinears(expr, x)) is { }) return answer;
649+
// And with sines and cosines beside the exponential, written as exponentials: each term
650+
// is then the exponential's, with a complex rate.
651+
if ((answer = IndefiniteIntegralSolver.SolveAnExponentialTimesATrigonometricOverLinears(expr, x)) is { }) return answer;
649652
// Sines and cosines of a linear over a power of a linear, onto Si and Ci under u = the
650653
// linear, where the search would take the quotient by parts without end.
651654
if ((answer = IndefiniteIntegralSolver.SolveATrigonometricOfALinearOverAPowerOfALinear(expr, x)) is { }) return answer;
@@ -838,6 +841,8 @@ private static Entity Normalized(Entity expr, Entity.Variable x) =>
838841
// is why the general substitution does not find it and why it pays: the integrator
839842
// answers an exponential times almost anything.
840843
if ((answer = IndefiniteIntegralSolver.SolveByLogarithmSubstitution(expr, x, integrateByParts)) is { }) return answer;
844+
// And a power of x times a function of one logarithm of a monomial, under t = that logarithm.
845+
if ((answer = IndefiniteIntegralSolver.SolveByAPowerAndALogarithmOfAMonomial(expr, x, integrateByParts)) is { }) return answer;
841846
// And the inverse trigonometric functions' own, beside the logarithm's and for the
842847
// same reason: `x = sin(u)` removes the `x` that substituting for `arcsin(x)` leaves.
843848
if ((answer = IndefiniteIntegralSolver.SolveByInverseTrigonometricSubstitution(expr, x, integrateByParts)) is { }) return answer;

‎Sources/Tests/UnitTests/Calculus/ExponentialIntegralIntegrationTest.cs‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,34 @@ private static readonly (string, string)[] Pins =
6262
public void AnExponentialOfALinearOverAPowerOfALinear(string integrand)
6363
=> DifferentiatesBack(integrand, AroundZero, Pins);
6464

65+
/// <summary>
66+
/// Beside a sine or a cosine of a linear, the sine and cosine are written as exponentials,
67+
/// and each term is the exponential's above with a complex rate: <c>e^(2x) sin(x)/x</c> is
68+
/// <c>(Ei((2 + i) x) - Ei((2 - i) x))/(2i)</c>, two conjugate terms whose sum is real.
69+
/// </summary>
70+
[Theory]
71+
[InlineData("e^(2*x)*sin(x)/x")]
72+
[InlineData("e^x*cos(x)/(1 + x)")]
73+
[InlineData("x*e^x*sin(2*x)/(x - 1)")]
74+
public void AnExponentialTimesASineOrCosineOverALinear(string integrand)
75+
=> DifferentiatesBack(integrand, AroundZero, Pins);
76+
77+
/// <summary>
78+
/// A power of <c>x</c> times a function of a logarithm of a monomial, under
79+
/// <c>t = ln(c x^n)</c>, with <c>x^(m + 1)</c> written as <c>K e^((m + 1) t/n)</c> and
80+
/// <c>K = x^(m + 1) (c x^n)^(-(m + 1)/n)</c> locally constant. With an even <c>n</c> the
81+
/// integrand is real at negative <c>x</c> as well, and the answer is checked there too,
82+
/// where <c>ln(c x^n)</c> is not <c>ln(c) + n ln(x)</c>.
83+
/// </summary>
84+
[Theory]
85+
[InlineData("x*sin(ln(x))/ln(x)")]
86+
[InlineData("Si(d*(a + b*ln(c*x^n)))")]
87+
[InlineData("x*Ci(d*(a + b*ln(c*x^n)))")]
88+
[InlineData("(k*x)^m*Ei(d*(a + b*ln(c*x^n)))")]
89+
public void APowerTimesAFunctionOfALogarithmOfAMonomial(string integrand)
90+
=> DifferentiatesBack(integrand, new[] { -2.1, -0.7, 0.6, 1.7 },
91+
("a", "2/5"), ("b", "13/10"), ("c", "7/10"), ("d", "19/10"), ("k", "11/10"), ("m", "1/2"), ("n", "2"));
92+
6593
/// <summary>
6694
/// Over several linears, the quotient is split into partial fractions over them first, and
6795
/// each term is the question above: <c>e^x/(x (x + 1))</c> is <c>Ei(x) - Ei(x + 1)/e</c>. The
@@ -103,6 +131,7 @@ public void AnOddNegativeMomentOfTheGaussian(string integrand)
103131
[InlineData("(1 + x)/ln(x)")]
104132
[InlineData("x^2/ln(c*(d + k*x^3)^n)")]
105133
[InlineData("x^8/ln(c*(d + k*x^3)^n)^2")]
134+
[InlineData("(k*x)^m*x/ln(b*x)")]
106135
public void APowerOverAPowerOfALogarithm(string integrand)
107136
=> DifferentiatesBack(integrand, PastOne, Pins);
108137

‎Sources/Tests/UnitTests/Calculus/SpecialFunctionsByPartsTest.cs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ public void TheLogarithmicIntegralIsByParts(string integrand)
8787
public void TheLogarithmicIntegralOverXIsOneRoundOfParts()
8888
=> DifferentiatesBackAt(new[] { 0.35, 1.45, 2.3 }, "li(b*x)/x", ("b", "13/10"));
8989

90+
/// <summary>
91+
/// Beside a power of a monomial, the remainder is <c>b (d x)^m x/((m + 1) ln(b x))</c>, a power
92+
/// of <c>x</c> over a logarithm of a monomial, which is <c>Ei((m + 2) ln(b x))</c> times a
93+
/// locally constant factor. Rubi's 8.3 row 269.
94+
/// </summary>
95+
[Fact]
96+
public void TheLogarithmicIntegralBesideAPowerOfAMonomial()
97+
=> DifferentiatesBackAt(new[] { 0.35, 1.45, 2.3 }, "(d*x)^m*li(b*x)", ("b", "13/10"), ("d", "19/10"), ("m", "1/2"));
98+
9099
/// <summary>
91100
/// Against a power of <c>x</c>, the special function is the factor differentiated: what is
92101
/// left is the power times <c>e^(-u^2)</c>, <c>e^u/u</c>, <c>sin(u)/u</c> and the like.

0 commit comments

Comments
 (0)