Skip to content

Instantly share code, notes, and snippets.

@jskDr
Created May 24, 2014 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jskDr/aa381f4be152c07a431b to your computer and use it in GitHub Desktop.
Save jskDr/aa381f4be152c07a431b to your computer and use it in GitHub Desktop.
This code shows how to use functions of C libraries.
# Use C library, which is log() in math.h
cdef extern from "math.h":
double log(double x)
def kmc( float x):
cdef float t
t = log( x)
return t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment