On Mon, Mar 28, 2011 at 1:57 PM, ObsessiveMathsFreak
<obsessivemathsfr...@gmail.com> wrote:
> Thank you. That is more or less what I was looking for.
>
> However, is there any shorthand way of getting srange to include the
> final endpoint? While
> srange(0,1.0,0.1,include_endpoint=True)
> works, it is somewhat more verbose than I am used to.

This also works:

sage: [0,0.2,..,1]
[0.000000000000000, 0.200000000000000, 0.400000000000000,
0.600000000000000, 0.800000000000000, 1.00000000000000]

-- 
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

Reply via email to