[issue3167] math test fails on Solaris 10
Jean Brouwers
report at bugs.python.org
Sun Jun 29 17:51:34 CEST 2008
Jean Brouwers <MrJean1 at Gmail.com> added the comment:
For comparison, 64-bit -xO5 Python build:
Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmath
>>> cmath.exp(710.0 + 1.5j)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>> cmath.log(100,2)
(0.71244151439608006-2.0556716794852954j)
>>> cmath.log(complex(100,0), complex(2,0))
(0.71244151439608006-2.0556716794852954j)
64-bit -xO0 Python build:
Python 2.6b1 (r26b1:64398, Jun 28 2008, 11:02:57) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmath
>>> cmath.exp(710.0 + 1.5j)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: math range error
>>> cmath.log(100,2)
(6.6438561897747253+0j)
>>> cmath.log(complex(100,0), complex(2,0))
(6.6438561897747253+0j)
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3167>
_______________________________________
More information about the Python-bugs-list
mailing list