Cython has moved to github.

cython

view tests/compile/r_pernici1.pyx @ 724:4e4808271bdf

Bump version number.
author Robert Bradshaw <robertwb@math.washington.edu>
date Thu Jun 12 16:53:51 2008 -0700 (3 years ago)
parents 612957ef6e8f
children
line source
1 __doc__ = u"""
2 >>> main()
3 3.14159265358979323846
4 3.14159265358979323846
5 3.14159265358979323846
6 """
8 cdef extern from "math.h":
9 double M_PI
11 #cdef unsigned long int n1
12 #n1 = 4293858116
14 cdef double pi
15 pi = 3.14159265358979323846
17 def main():
18 #print n1
19 print "%.18f" % M_PI
20 print "%.18f" % (<float> M_PI)
21 print "%.18f" % pi