1 public class MathTest {
    2     public static void main(String[] args) {
    3         final double TOLERANCE = 0.0000000000001;
    4         
    5         // run test 1
    6         double x = 45;
    7         if (Math.abs((Math.sqrt(x) * Math.sqrt(x)) - x) > TOLERANCE)
    8             System.out.println("Error:  failed sqrt test 1 for " + x);
    9     }
   10 }