is it a bug in sum?



On Mon, Mar 31, 2008 at 10:01 PM, laurent couraud <l.couraud at free.fr> wrote:
>  simpsum:true$
>  sum((x[i]-sum(x[i],i,1,n)/n)^2,i,1,n)
>
>  The result is 0.

I don't have Maxima where I am (travelling), but I imagine that using
the same index names for the inner and outer sums will cause problems
(and is not standard mathematical usage either).

Try using j as the inner index, for example.

        -s