sums



On Thursday 06 November 2008 22:45:38 J. Simons wrote:
> L.S.,
>
> Is it possible to calculate with Maxima the exact value of the
> following sums :
>
> s1 = 1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6+........................
>
> s2 = 1+ 1/3 - 1/2 + 1/5 + 1/7 - 1/4 + 1/9 + 1/11 - 1/6+

(%i1) load ("simplify_sum")$
(%i2) simplify_sum (sum ((-1)^(n+1)/n, n,1,inf));
(%o2)  -(-2*log(2)-%gamma)/2-%gamma/2
(%i3) ratsimp (%);
(%o3) log(2)

-- 
Setting Orange, Aftermath 18 YOLD 3174
Alexey Beshenov  http://beshenov.ru/