This test is commented out (line 1048 of rtestint)
* principal value integral */
/* [ 657382 ] defint/limit infinite loop */
/* Because of changes to timesin this does no longer work
integrate(1/(1-x^5), x, 0, inf);
0-(2*sqrt(2*sqrt(5)+10)*atan((sqrt(5)-3)*sqrt(2*sqrt(5)+10)/(4*sqrt(5)))
+2*sqrt(10-2*sqrt(5))*atan(sqrt(10-2*sqrt(5))*(sqrt(5)+3)/(4*sqrt(5)))
-sqrt(2)*sqrt(sqrt(5)+5)*%pi-sqrt(2)*sqrt(5-sqrt(5))*%pi)
/20;
Current Maxima gives
(%i2) ans : integrate(1/(1-x^5), x, 0, inf);
Principal Value
(%o2) -((2^(3/2)*sqrt(5-sqrt(5))
*atan((sqrt(5-sqrt(5))*(sqrt(2)*sqrt(5)+3*sqrt(2)))
/(4*sqrt(5)))
+2^(3/2)*sqrt(sqrt(5)+5)
*atan((sqrt(sqrt(5)+5)*(sqrt(2)*sqrt(5)-3*sqrt(2)))/(4*sqrt(5)))
-sqrt(2)*sqrt(sqrt(5)+5)*%pi-sqrt(2)*sqrt(5-sqrt(5))*%pi)
/20)
(%i3) float(ans);
(%o3) 0.8648062659772102
Possibly, the sign is wrong--I'm not sure. Also when domain : complex, either the calculation takes a long time, or it is in a infinite loop.
For the record, the aforementioned defint/limit bug is now known as:
https://sourceforge.net/p/maxima/bugs/200/
1/(1-x^5)can be factored as-1/(x-1)/(x^4+x^3+x^2+x+1), and we can usequad_qawcto compute the integral like so:And for [100,inf]`:
That's pretty close.