• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

# See http://cens.ioc.ee/projects/f2py2e/usersguide/index.html for
# f2py users guide
import example
import numpy
 
print example.fib(12)
 
x = numpy.arange(10.)
 
yf = example.cumsum(x)
yn = numpy.cumsum(x)
 
numpy.testing.assert_array_almost_equal(yf, yn)