Message74920
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. |
|
Date |
User |
Action |
Args |
2008-10-17 15:53:20 | christian.heimes | set | recipients:
+ christian.heimes, mark.dickinson, thor222 |
2008-10-17 15:53:20 | christian.heimes | set | messageid: <1224258800.71.0.799817894182.issue4139@psf.upfronthosting.co.za> |
2008-10-17 15:53:20 | christian.heimes | link | issue4139 messages |
2008-10-17 15:53:20 | christian.heimes | create | |
|