Christian Heimes <[EMAIL PROTECTED]> added the comment:

I'm pretty sure that Python 2.6 is correct and Python 2.5 is wrong.

Python 2.6:
>>> cmath.asin(2.0)
(1.5707963267948966+1.3169578969248166j)
>>> cmath.asin(2.0+(+1E-300j))
(1.5707963267948966+1.3169578969248166j)
>>> cmath.asin(2.0+(-1E-300j))
(1.5707963267948966-1.3169578969248166j)

Python 2.5:
>>> cmath.asin(2.0)
(1.5707963267948966-1.3169578969248166j)
>>> cmath.asin(2.0+(+1E-300j))
(1.5707963267948966+1.3169578969248164j)
>>> cmath.asin(2.0+(-1E-300j))
(1.5707963267948966-1.3169578969248166j)

I used -1E-300j to get value that is almost a negative complex zero.

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4139>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to