robomath.h

00001 /*
00002  * @(#)robomath.h       07/08/13
00003  * 
00004  * Description  : useful matemathic functions.
00005  *
00006  * License      : GNU GPL v.2
00007  */
00008 
00009 #ifndef __robomath__
00010 #define __robomath__
00011 
00012 #define POWER(x)                ((x)*(x))
00013 #define DEGREES(a)              ((a)*180.0/M_PI)
00014 #define DEG2RAD(a)              ((a)/180.0*M_PI)
00015 #define MIN(a, b)               (((a) < (b)) ? (a) : (b))
00016 #define MAX(a, b)               (((a) > (b)) ? (a) : (b))
00017 
00021 double gaussrand();
00022 float urand();
00023 double gaussian_random(void);
00024 double evaluate_gaussian(double val, double sigma);
00025 float exprand(float lambda);
00026 
00027 #endif  /* __robomath__ */

Generated on Thu Sep 13 11:28:28 2007 for DCE-Eurobot by  doxygen 1.5.3