On Tue, Dec 9, 2008 at 8:14 PM, mhampton <[EMAIL PROTECTED]> wrote: > > I use srange quite a bit in practice in numerical settings. The sort > of construction I often use looks like: > > step = .01 > for x in srange(0,2+step/2, step): > ...do whatever > > I mention this because it is often does what I want, but of course > other people might want different things. There is clearly no > canonical choice that will make everyone happy. > > I am happy to help review any patches for srange since it is something > important to me.
Cool. By the way, when people use the [...]'s notation, they are often using srange, I think: sage: [0,0.1,..,1.1] [0.000000000000000, 0.100000000000000, 0.200000000000000, 0.300000000000000, 0.400000000000000, 0.500000000000000, 0.600000000000000, 0.700000000000000, 0.800000000000000, 0.900000000000000, 1.00000000000000, 1.10000000000000, 1.20000000000000] # <--- ick -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com 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://www.sagemath.org -~----------~----~----~----~------~----~------~--~---