[Numpy-discussion] arange and floating point arguments
Lou Pecora
lou_boog2000 at yahoo.com
Fri Sep 14 09:54:26 EDT 2007
I thought this is what the linspace function was
written for in numpy. Why not use that? It works
just like you would want always including the final
point.
--- Joris De Ridder <Joris.DeRidder at ster.kuleuven.be>
wrote:
> Might using
>
> min(ceil((stop-start)/step),
> ceil((stop-start)/step-r))
>
> with r = finfo(double).resolution instead of
> ceil((stop-start)/step)
> perhaps be useful?
>
> Joris
-- Lou Pecora, my views are my own.
____________________________________________________________________________________
Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more!
http://tv.yahoo.com/collections/3658
More information about the NumPy-Discussion
mailing list