Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Strange behaviour

Reply
Thread Tools

Strange behaviour

 
 
Angelo Secchi
Guest
Posts: n/a
 
      11-16-2004

Hi,
I'm running Python 2.3.4 [GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1,
ssp-3.3.2-2, pie-8.7.6)] on a dual opteron (64bit) machine with Gentoo
2004.2 and a 2.6.9 kernel. I've noticed the following strage (at least
to me, not an expert) behavior

CODE 1 Numeric 23.1

from Numeric import *
from RandomArray import *

g = standard_normal(10)
for i in g:
print i

OUTPUT 1

1.59079927293e-314
1.5752918018e-314
5.23806804853e-315
1.58228191666e-314
5.11159528165e-315
5.31543285917e-315
1.58655562847e-314
4.89784284909e-315
1.57681709855e-314
1.58297641881e-314


CODE 2 Numarray (latest cvs)

from numarray.random_array import *

g = standard_normal(10)
for i in g:
print i

OUTPUT 2

-1.11763262749
-0.976676821709
0.67619407177
0.0889070928097
-0.120251983404
-0.0151885077357
0.570596694946
-1.62964510918
-1.32629060745
-1.05354857445


Any idea about the origin of this problem?
Thanks
angelo



--
================================================== ======
Angelo Secchi PGP Key ID:EA280337
================================================== ======
 
Reply With Quote
 
 
 
 
Lonnie Princehouse
Guest
Posts: n/a
 
      11-16-2004
> Any idea about the origin of this problem?

My setup is identical except with Xeons instead of Opterons, and I get
the expected result with Numeric 23.1. This indicates that it's
either a 64-bit bug with Numeric 23.1 (which looks like it's been
fixed in your latest-cvs test), or the ebuild is compiling wrong. The
latter seems unlikely, but building 23.1 from the tarball instead of
emerging it, and then running your test again, would be decisive.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
debugger behaviour different to execution behaviour Andy Chambers Java 1 05-14-2007 09:51 AM
a strange behaviour of FF Maurice Firefox 2 03-11-2005 11:53 PM
Strange mouse behaviour with flash in Mozilla 1.3.7 hpoppe Firefox 0 11-07-2004 12:16 PM
Strange taskbar behaviour (notification area) Falcon Wireless Networking 0 08-17-2004 09:03 AM
[mozilla1.6] strange behaviour with newsgroup joost68 Firefox 5 04-03-2004 03:48 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57