// Exercise 7.3: MathTest.cs
// Testing the Math class methods.
using System;

public class MathTest
{
   public static void Main( string[] args )
   {
      Console.WriteLine( "Math.Abs( 23.7 ) = {0}", Math.Abs( 23.7 ) );
      Console.WriteLine( "Math.Abs( 0.0 ) = {0}", Math.Abs( 0.0 ) );
      Console.WriteLine( "Math.Abs( -23.7 ) = {0}", Math.Abs( -23.7 ) );
      Console.WriteLine( "Math.Ceiling( 9.2 ) = {0}",
         Math.Ceiling( 9.2 ) );
      Console.WriteLine( "Math.Ceiling( -9.8 ) = {0}",
         Math.Ceiling( -9.8 ) );
      Console.WriteLine( "Math.Cos( 0.0 ) = {0}", Math.Cos( 0.0 ) );
      Console.WriteLine( "Math.Exp( 1.0 ) = {0}", Math.Exp( 1.0 ) );
      Console.WriteLine( "Math.Exp( 2.0 ) = {0}", Math.Exp( 2.0 ) );
      Console.WriteLine( "Math.Floor( 9.2 ) = {0}", Math.Floor( 9.2 ) );
      Console.WriteLine( "Math.Floor( -9.8 ) = {0}",
         Math.Floor( -9.8 ) );
      Console.WriteLine( "Math.Log( Math.E ) = {0}",
         Math.Log( Math.E ) );
      Console.WriteLine( "Math.Log( Math.E * Math.E ) = {0}",
         Math.Log( Math.E * Math.E ) );
      Console.WriteLine( "Math.Max( 2.3, 12.7 ) = {0}",
         Math.Max( 2.3, 12.7 ) );
      Console.WriteLine( "Math.Max( -2.3, -12.7 ) = {0}",
         Math.Max( -2.3, -12.7 ) );
      Console.WriteLine( "Math.Min( 2.3, 12.7 ) = {0}",
         Math.Min( 2.3, 12.7 ) );
      Console.WriteLine( "Math.Min( -2.3, -12.7 ) = {0}",
         Math.Min( -2.3, -12.7 ) );
      Console.WriteLine( "Math.Pow( 2.0, 7.0 ) = {0}",
         Math.Pow( 2.0, 7.0 ) );
      Console.WriteLine( "Math.Pow( 9.0, 0.5 ) = {0}",
         Math.Pow( 9.0, 0.5 ) );
      Console.WriteLine( "Math.Sin( 0.0 ) = {0}", Math.Sin( 0.0 ) );
      Console.WriteLine( "Math.Sqrt( 900.0 ) = {0}",
         Math.Sqrt( 900.0 ) );
      Console.WriteLine( "Math.Sqrt( 9.0 ) = {0}", Math.Sqrt( 9.0 ) );
      Console.WriteLine( "Math.Tan( 0.0 ) = {0}", Math.Tan( 0.0 ) );
   } // end Main
} // end class MathTest

/**************************************************************************
 * (C) Copyright 1992-2006 by Deitel & Associates, Inc. and               *
 * Pearson Education, Inc. All Rights Reserved.                           *
 *                                                                        *
 * DISCLAIMER: The authors and publisher of this book have used their     *
 * best efforts in preparing the book. These efforts include the          *
 * development, research, and testing of the theories and programs        *
 * to determine their effectiveness. The authors and publisher make       *
 * no warranty of any kind, expressed or implied, with regard to these    *
 * programs or to the documentation contained in these books. The authors *
 * and publisher shall not be liable in any event for incidental or       *
 * consequential damages in connection with, or arising out of, the       *
 * furnishing, performance, or use of these programs.                     *
 *************************************************************************/
