Include <cmath> instead of <math.h>