Message 68953 - Python tracker
What about this case? Should cmath not produce the same result as math:
>>> math.log(float('-inf'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: math domain error
>>> cmath.log(float('-inf'))
(inf+3.1415926535897931j)
>>> cmath.log(complex(float('-inf'), 0))
(inf+3.1415926535897931j)
This occurs in all 32- and 64-bit builds (with -xlibmieee and SUN C) on
Solaris 10 (Opteron) and on 32-bit MacOS X 10.4.11 (Intel) built with
gcc.