diff options
Diffstat (limited to 'docs/examples/tutorial/external/libc_sin.pyx')
-rw-r--r-- | docs/examples/tutorial/external/libc_sin.pyx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/examples/tutorial/external/libc_sin.pyx b/docs/examples/tutorial/external/libc_sin.pyx index 25a4430e3..2de8444d6 100644 --- a/docs/examples/tutorial/external/libc_sin.pyx +++ b/docs/examples/tutorial/external/libc_sin.pyx @@ -1,4 +1,5 @@ -from libc.math cimport sin
-
-cdef double f(double x):
- return sin(x * x)
+from libc.math cimport sin + + +cdef double f(double x): + return sin(x * x) |