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
A definite integral across a pole of Ei, li, Ci or Chi is given a finite value, and li over negative arguments is wrong #2716
On master (409d688), a definite integral across a logarithmic singularity of Ei, li, Ci or Chi is answered with the difference of the antiderivative's values, although the integral diverges; and li over negative arguments gives wrong values. integral(1/x, x, -1, 1) is correctly NaN.
simplify(integral(…))
master
true
exp(x)/x, x, -1, 2
Ei(2) - Ei(-1)
diverges (pole at 0)
1/ln(x), x, 1/2, 3/2
li(3/2) - li(1/2)
diverges (pole at 1)
cos(x)/x, x, -1, 1
Ci(1) - Ci(-1), which eval makes -pi i
diverges; a complex value for a real integrand
cosh(x)/x, x, -1, 2
Chi(2) - Chi(-1)
diverges
li(x), x, -2, -1
+oo + 2 li(-2) - li(-1) + Ei(2 ln(2))
0.0600893967 + 3.5802459734i
li(-x), x, 0, 1
li(-1) - oo
0.0511072503 + 3.2700886281i
x * li(sqrt(x)), x, -2, 2
evaluates to -3.3312 - 4.3393i
-3.3312006070 - 5.9100957016i (imaginary part off by pi/2)
Two convergent integrals with an integrand that is 0/0 at a point give NaN: floor(x)/x on [0, 1] (true 0) and floor(x) * Si(1/x) on [-pi, pi] (true ≈ 5.7973142).
Activity