[NumPy-Tickets] [NumPy] #1681: arange function give inconsistence result
NumPy Trac
numpy-tickets@scipy....
Fri Nov 19 13:23:40 CST 2010
#1681: arange function give inconsistence result
--------------------------+-------------------------------------------------
Reporter: hongdog | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: Other | Version: 1.3.0
Keywords: arange 1.3.0 |
--------------------------+-------------------------------------------------
Using spyder with python 2.6.2 and numpy 1.3.0 on Windows XP, I found the
following problem.
--------------
In [31]: arange(12.5,13,0.1)
Out[31]: array([ 12.5, 12.6, 12.7, 12.8, 12.9]) # "13.0" is not here
In [32]: arange(12.6,13,0.1)
Out[32]: array([ 12.6, 12.7, 12.8, 12.9, 13. ]) # "13.0" is here
--------------
As shown, the "end 13.0" is not shown in 1st array, which is correct based
on the document, but shown in 2nd array.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1681>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list