Programming Question
Charles G Waldman
cgw at fnal.gov
Tue Sep 21 10:47:15 EDT 1999
Darrell writes:
> Fixed point is good, but you can do it with floats also.
> I'm expecting the next post to tell us that a floating point range already
> exists :)
In Numeric Python it does :-)
>>> from Numeric import *
>>> arange(-4,-3,0.1)
array([-4. , -3.9, -3.8, -3.7, -3.6, -3.5, -3.4, -3.3, -3.2, -3.1])
The returned object is an array object, rather than a list, but you
can still loop over it with a regular for-loop.
More information about the Python-list
mailing list