On Sep 18, 2:10 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> How about providing a sum function that would behave like, say, the
> integrate function.  It could detect the argument types so if you
> passed it a list, it'd behave the same as the builtin sum function.
>
> sage: integrate(x, x, 0, 10)
> 50
> sage: sum(x, x, 0, 10)
> 55
> sage: sum(range(10))
> 45
>
> I'm having trouble thinking of other instances where range() not
> including the upper bound would cause (major) problems.
>
> --Mike

^^^
bump


--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to