20 double absa = fabs(a);
21 double absb = fabs(b);
22 double absd = fabs(a - b);
24 if ((absd/absa < thresh) && (absd/absb < thresh))
double ode_min2(double a, double b)
Simple minimum of two doubles.
double ode_max2(double a, double b)
Simple maximum of two doubles.
bool ode_is_close(double a, double b, double thresh)
Checks if two numbers are very close to each other.