14 #ifndef INCLUDED_basic_basic_hh
15 #define INCLUDED_basic_basic_hh
double periodic_range(double a, double x)
a is restricted to [-x/2,x/2), assuming that a=a+n*x, n=any integer
double unsigned_periodic_range(double a, double x)
a is restricted to [0.,x), assuming that a=a+n*x,, n=any integer
double subtract_radian_angles(double a, double b)
subtract angles in radians, restricting the range of the result
double subtract_degree_angles(double a, double b)
subtract angles in degrees, restricting the range of the result
void calc_quadratic(double a, double b, double c, double &n1, double &n2)
calculates quadratic polynomial solutions
void angle_in_range(double &ang)
taken from wobble.cc