Switching from math.h to math