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

teomat matteo.malosio@itia.cnr...
Thu Feb 9 01:31:43 CST 2012


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