|
From: Christopher B. <Chr...@no...> - 2006-06-30 20:40:47
|
Robert Kern wrote:
> It's arange(0.0, 1.0, 0.1) that I think causes the most problems with arange and
> floats.
actually, much to my surprise:
>>> import numpy as N
>>> N.arange(0.0, 1.0, 0.1)
array([ 0. , 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9])
But I'm sure there are other examples that don't work out.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|