cmath is preferred to math.h