This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, mark.dickinson, thor222
Date 2008-10-17.15:53:20
SpamBayes Score 0.0028784892
Marked as misclassified No
Message-id <1224258800.71.0.799817894182.issue4139@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-10-17 15:53:20christian.heimessetrecipients: + christian.heimes, mark.dickinson, thor222
2008-10-17 15:53:20christian.heimessetmessageid: <1224258800.71.0.799817894182.issue4139@psf.upfronthosting.co.za>
2008-10-17 15:53:20christian.heimeslinkissue4139 messages
2008-10-17 15:53:20christian.heimescreate