1 #ifndef MATH_H 2 #define MATH_H 3 4 // CHDK floating point math functions 5 6 // Note: used in modules and platform independent code. 7 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values) 8 9 #define M_PI 3.14159265358979323846 10 11 extern double log(double x); 12 extern double log2(double x); 13 extern double log10(double x); 14 extern double pow(double x, double y); 15 extern double sqrt(double x); 16 17 #endif