cdef extern from "math.h": double log(double)