public static boolean eq(double a,double b){
  return (a == b) || ((a - b < SMALL) && (b - a < SMALL));
}

public static boolean eq ( double a , double b ) { return ( a == b ) || ( ( a - b < SMALL ) && ( b - a < SMALL ) ) ; }
tests if a is equal to b .
