[Numpy-discussion] step paramter for linspace
Henry Gomersall
heng at cantab.net
Fri Mar 1 09:32:48 EST 2013
On Fri, 2013-03-01 at 09:24 -0500, Warren Weckesser wrote:
> > In my jet-lag addled state, i can't see when this out[-1] > stop
> case
> > will occur, but I can take it as true. It does seem to be
> problematic
> > though.
>
>
> Here you go:
>
> In [32]: end = 2.2
>
> In [33]: x = arange(0.1, end, 0.3)
Thanks!
I'll assert then that there should be an equivalent for floats that
unambiguously returns a range for the half open interval. IMO this is
more useful than a hacky version of linspace.
Henry
More information about the NumPy-Discussion
mailing list