예제 #1
0
 static void Step5871()
 {
     Console.WriteLine();
     Console.WriteLine("5871");
     double[] in5871   = { 6911, 5, 6, 2, 0, -4 };
     double[] outs5871 = { 1.0, 0.707107, 0.881127, -1, -1, -1 };
     for (int i = 0; i < in5871.Length; i++)
     {
         try
         {
             double result = Lab02.Task5871(in5871[i]);
             Console.WriteLine("{0:F6} ({1:F6})", result, outs5871[i]);
         }
         catch (Exception e)
         {
             Console.WriteLine(e.Message);
         }
     }
 }