# HG changeset patch
# User William Stein <wstein@gmail.com>
# Date 1274753415 25200
# Node ID 5d44995ce47605b408c90d19093ac241d1544a72
# Parent 1451c00a8d44f78f01cb0dc22ebb7464cc6ad0e2
trac 8853 -- fix M_PI_4 in complex_double on Cygwin
diff --git a/sage/rings/complex_double.pyx b/sage/rings/complex_double.pyx
|
a
|
b
|
|
| 65 | 65 | |
| 66 | 66 | cdef extern from "math.h": |
| 67 | 67 | double modf (double value, double *integer_part) |
| 68 | | double M_PI_4 |
| | 68 | |
| | 69 | # The M_PI_4 constant is not available on cygwin in "math.h" (though |
| | 70 | # it is on most other platforms). |
| | 71 | cdef double M_PI_4 = 0.785398163397448309615660845819875721 |
| 69 | 72 | |
| 70 | 73 | cdef extern from "complex.h": |
| 71 | 74 | double complex csqrt(double complex) |