BF: using cimport from libc.math instead of math.h in vector_fields and expectmax