00001 00002 #ifndef _util_misc_math_h 00003 #define _util_misc_math_h 00004 00005 #include <math.h> 00006 00007 #ifndef M_PI 00008 # define M_PI 3.14159265358979323846 /* pi */ 00009 #endif 00010 00011 #ifndef M_LN2 00012 # define M_LN2 0.69314718055994530942 /* log_e 2 */ 00013 #endif 00014 00015 #ifndef M_PI_2 00016 # define M_PI_2 1.57079632679489661923 /* pi/2 */ 00017 #endif 00018 00019 #endif