This is a really basic question, I'm sure, for cython types.
In the notebook, I have the following cell to compute a famous but totally inefficient $\pi(x)$ (prime counting function). It already is about 100 times faster than the equivalent in native Python.
asked Apr 20 '11kcrisman
7427 ● 17 ● 76 ● 166
If you want to use the C math library version of floor I think you need an appropriate include statement.
If you use the
Here is new code with the changes:
Asked: Apr 20 '11
Seen: 675 times
Last updated: Apr 21 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.