|
From: Flavio C. <fcc...@gm...> - 2005-07-14 14:10:22
|
2005/7/14, Robert Kern <rk...@uc...>: >=20 > Flavio Coelho wrote: >=20 > > I have both numeric 23.7 and numarray 1.3.1 installed and on neither > > of them I could reproduce the bug when I called them directly from the > > python interpreter. However they fail on mean 0.0 every time when calle= d > > within my code. So it appears to me that the Bug you mentioned is not > > what is causing my problem. It seems to stem from interaction with the > > way its being called, maybe some carryover from previous calls... > > this is the test I ran on the interpreter: > > [(poisson(i),i) for i in uniform(-20,20,1000) if i<=3D0] > > > > I also ran: > > > > sum(poisson(0,100000)) > > > > they both worked flawlessly. In the first test I wanted to see if there > > was some carry over from previous runs when called with various means > > (which is closer to the way it is used within my code), but it returned > > zero every time. (I don't use negative means in my code, but I wanted t= o > > try it here just in case) >=20 > Are you sure that you don't have other versions of Numeric or numarray > installed that might be getting picked up by your code? I have just double checked. And the answer is no, there is a single version= =20 of each of the modules.=20 -- > Robert Kern > rk...@uc... >=20 > "In the fields of hell where the grass grows high > Are the graves of dreams allowed to die." > -- Richard Harter >=20 >=20 > ------------------------------------------------------- > This SF.Net <http://SF.Net> email is sponsored by the 'Do More With Dual!= '=20 > webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by= =20 > HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion >=20 --=20 Fl=E1vio Code=E7o Coelho registered Linux user # 386432 --------------------------- Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence. Albert Einstein |