I forgot to add: This too works OK. k, n = var('k n') sum(k, k, 1, n) # gives 1/2*n^2 + 1/2*n
It fails only when n is a loop iterator. -- 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