This doesn't work:

sum(binomial(8,k),k,0,8)

It says "Either m or x-m must be an integer."

But this works:

f(n)=sum(binomial(n,k),k,0,8); f(8)

and so does this (h/t Rob Beezer):

sum([binomial(8,k) for k in range(0,9)])

I don't know if this is a "bug" but it certainly is odd and
undesirable behavior.

-- David

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to