[Numpy-discussion] range/arange

Pierre GM pgmdevlist at mailcan.com
Thu Apr 13 01:41:02 EDT 2006


Folks,
Could any of you explain me why the two following commands give different 
results ? It's mere curiosity, for my personal edification.

[(m-5)/10 for m in arange(1,10)]
[0, 0, 0, 0, 0, 0, 0, 0, 0]

[(m-5)/10 for m in range(1,10)]
[-1, -1, -1, -1, 0, 0, 0, 0, 0]




More information about the NumPy-Discussion mailing list