complex - unexpected behavior
Mirek Rusin
psyche at mensa.org.pl
Sat Aug 30 16:32:57 EDT 2003
...i've got different results on linux / windows box
with complex nums, why?
linux:
>>> print (2.83527944266e+184-3.10413674648e+186j) ** 2
(nan+nanj)
...m$ win:
>>> print (2.83527944266e+184-3.10413674648e+186j) ** 2
Traceback (most recent call last):
File "<stdin>", line 1, in ?
OverflowError: complex exponentiaion
system config is:
linux:
(Python 2.3 (#1, Aug 26 2003, 15:53:29)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Redhat 9, 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 GNU/Linux)
windows:
(Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on
win32
Microsoft Windows XP Home Edition)
More information about the Python-list
mailing list