//  Data Structures with Java by John R. Hubbard
//  Copyright McGraw-Hill, 2001
//  Example 1.10 on page 14
//  Testing the uniqueness of String literals

public class Ex0110
{ public static void main(String[] args)
  { final double PI=Math.PI;
    final double E=Math.E;
    System.out.println("E                  = " + E);
    System.out.println("Math.exp(1.0)      = " + Math.exp(1.0));
    System.out.println("PI                 = " + PI);
    System.out.println("4*Math.atan(1.0)   = " + 4*Math.atan(1.0));
    System.out.println("Math.cos(2*PI)     = " + Math.cos(2*PI));
    System.out.println("Math.sin(PI/2)     = " + Math.sin(PI/2));
    System.out.println("Math.tan(PI/4)     = " + Math.tan(PI/4));    
    System.out.println("Math.log(E)        = " + Math.log(E));
    System.out.println("Math.abs(-13.579)  = " + Math.abs(-13.579));
    System.out.println("Math.floor(13.579) = " + Math.floor(13.579));
    System.out.println("Math.ceil(13.579)  = " + Math.ceil(13.579));
    System.out.println("Math.round(13.579) = " + Math.round(13.579));
    System.out.println("Math.pow(25.0,0.5) = " + Math.pow(25.0,0.5));
    System.out.println("Math.sqrt(25.0)    = " + Math.sqrt(25.0));
    System.out.println("Math.random()      = " + Math.random());
    System.out.println("Math.random()      = " + Math.random());
  }
}
