diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-09-06 08:16:17 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-09-06 08:16:17 (GMT) |
commit | 387c547fd38d321e42bf202c166e9403e7ee9b61 (patch) | |
tree | 294ec439e64649ee93b41631cc10646d6cc9dfb5 /Objects/complexobject.c | |
parent | c2d272a1d553e0650b0ea6aa6d31a04e42d5bd7d (diff) | |
download | cpython-387c547fd38d321e42bf202c166e9403e7ee9b61.zip cpython-387c547fd38d321e42bf202c166e9403e7ee9b61.tar.gz cpython-387c547fd38d321e42bf202c166e9403e7ee9b61.tar.bz2 |
Revert parts of patch #453627, documenting the resulting test failures
instead.
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index dde6449..7404993 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -26,22 +26,6 @@ #define PREC_REPR 17 #define PREC_STR 12 -#ifdef SCO_ATAN2_BUG -/* - * UnixWare 7+ is known to have a bug in atan2 that will return PI instead - * of ZERO (0) if the first argument is ZERO(0). - */ -static double atan2_sco(double x, double y) -{ - if (x == 0.0) - return (double)0.0; - return atan2(x, y); -} -#define ATAN2 atan2_sco -#else -#define ATAN2 atan2 -#endif - /* elementary operations on complex numbers */ static Py_complex c_1 = {1., 0.}; @@ -154,7 +138,7 @@ c_pow(Py_complex a, Py_complex b) else { vabs = hypot(a.real,a.imag); len = pow(vabs,b.real); - at = ATAN2(a.imag, a.real); + at = atan2(a.imag, a.real); phase = at*b.real; if (b.imag != 0.0) { len /= exp(at*b.imag); |