// This program demonstrates the use of entities from java.lang.Math.
// Barry Cornelius, 2 June 2000
import java.io. BufferedReader;
import java.io. InputStreamReader;
import java.io. IOException;
public class MathProg
{
   public static void main(final String[] pArgs) throws IOException
   {
      final double x = 2.0;
      final double y = Math.log(Math.sin(Math.sqrt(x*x + 1.0)) - 0.3);
      System.out.println("The value of the complicated formula is: " + y);

      final double pi = 4.0*Math.atan(1.0);
      System.out.println("An approximation to the value of pi is: " + pi);

      System.out.println("Another approximation to pi is:  " + Math.PI);
   }
}
