including <math.h> to make VS2012 Express happy