[Numpy-discussion] numpy.random.multinomial() cannot handle zero's

Christopher Barker Chris.Barker@noaa....
Mon Aug 27 18:46:45 CDT 2007


Stefan van der Walt wrote:
> I find this behaviour odd for addition.  Under python:
> 
> In [7]: 0.8+0.2 > 1.0
> Out[7]: False
> 
> but using the Pyrex module, it yields true.

odd. I wonder if one is using extended floating point in the FPU, and 
the other not? What hardware/OS/compiler are you using?

I'm no numerical analyst, I just know enough not to expect floating 
point calculations to be accurate to the last couple digits.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the Numpy-discussion mailing list