When ask sage about the function sum()

sage: sum?

I get told to use it the following way:

sage: sum(expression, k, 1, n)

which should give me back the summation of "expression" over the index
k from 1 to n.
Unfortunately this gives me an error message like "summation index
needed".

I found out searching the internet that writing instead:

sum(expression for k in (1..n))

works. So I'm assuming that the documentation is outdated. Maybe this
is well know, but I hope it is ok to post this here.

Cheers
Michael

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

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to