[issue4139] Major error in cmath routines

2008-10-17 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: This is not a bug, at least in the sense that the behaviour of Python 2.6 is intentional: asin has branch cuts from 1 to infinity and -1 to - infinity along the real axis. As explained by the note at the top of the cmath documentation, on

[issue4139] Major error in cmath routines

2008-10-17 Thread Christian Heimes
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-300

[issue4139] Major error in cmath routines

2008-10-17 Thread Christian Heimes
Changes by Christian Heimes <[EMAIL PROTECTED]>: -- assignee: -> marketdickinson components: +Extension Modules -Library (Lib) priority: -> critical versions: +Python 2.7, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]>

[issue4139] Major error in cmath routines

2008-10-17 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- nosy: +christian.heimes, marketdickinson ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4139] Major error in cmath routines

2008-10-17 Thread thor222
Changes by thor222 <[EMAIL PROTECTED]>: -- type: -> behavior ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing li

[issue4139] Major error in cmath routines

2008-10-17 Thread thor222
New submission from thor222 <[EMAIL PROTECTED]>: There's an error in the way cmath computes the inverse sine, cosine and tangent functions. Example: In 2.6: cmath.asin(2) returns 1.5707963267948966+1.3169578969248166j However, the answer should be 1.5707963267948966-1.3169578969248166j cmath.asi