[Numpy-discussion] arange and floating point arguments

Lou Pecora lou_boog2000@yahoo....
Fri Sep 14 08:54:26 CDT 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

--- Joris De Ridder <Joris.DeRidder@ster.kuleuven.be>

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

More information about the Numpy-discussion mailing list