[Numpy-discussion] numpy.arange() error?

teomat matteo.malosio at itia.cnr.it
Thu Feb 9 02:31:43 EST 2012


Hi,

Am I wrong or the numpy.arange() function is not correct 100%?

Try to do this:

In [7]: len(np.arange(3.1, 4.9, 0.1))
Out[7]: 18

In [8]: len(np.arange(8.1, 9.9, 0.1))
Out[8]: 19

I would expect the same result for each command.

All the best


-- 
View this message in context: http://old.nabble.com/numpy.arange%28%29-error--tp33277269p33277269.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.




More information about the NumPy-Discussion mailing list