philippe Roux - 2023-05-14

here is another example where maxima (and sagemath) fails to simplify a summation . Wolframalpha.com also fails to find the pi/16 value but gives different closed forms and a numerical value compatible with pi/16. Here is a minimal example showing the problem :

'S=S:sum(sin(n*%pi/3)^3*cos(n*%pi/3)/n,n,1,inf);
'S=S:ratsimp(simplify_sum(S2)); /* false!*/
S_exact:%pi/16;
S_num:float(sum(sin(n*%pi/3)^3*cos(n*%pi/3)/n,n,1,10000));
S_exact=float(S_exact);

you can check that the value given by simplify_sum is far from the numerical value, and this one is compatible with pi/16 (which has been obtained by Dirichlet Theorem for the Fourier series of some piecewise constant function):

S= 3/8*sqrt(3)*e + 3/8*sqrt(3) = 2.4150948914066888
S_exact= 1/16*pi = 0.19634954084936207
S_num= 0.1965659389111564
 

Last edit: Robert Dodier 2023-05-14