On 8/16/10 9:29 PM, Roy Smith wrote:
In article<[email protected]>,
Lawrence D'Oliveiro<[email protected]_zealand> wrote:
In message<[email protected]>, Roy Smith wrote:
5) real intensity[160.0 : 30.0 : 0.01]
How many elements in that array?
a) 2999
b) 3000
c) neither of the above
c) neither of the above. More specifically, 13,001 (if I counted
correctly).
13000, actually. Floating point is a bitch.
[~/Movies]
|1> import numpy
[~/Movies]
|2> len(numpy.r_[160.0:30.0:-0.01])
13000
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list