コード例 #1
0
 static void Step2624()
 {
     Console.WriteLine();
     Console.WriteLine("2624");
     int[]    in2624a  = { 11, 6991, 3, -6959, 0, 1 };
     int[]    in2624b  = { 13, 6983, 11, 6949, 0, 2 };
     int[]    in2624c  = { 17, 6977, -241, 6947, 0, -3 };
     int[]    in2624x  = { 19, 6961, 1, 6917, 0, 1 };
     double[] outs2624 = { 0.0154, 0.0, 0, 0, 0, 0 };
     for (int i = 0; i < in2624a.Length; i++)
     {
         try
         {
             double result = Lab02.Task2624(in2624a[i], in2624b[i], in2624c[i], in2624x[i]);
             Console.WriteLine("{0:F6} ({1:F6})", result, outs2624[i]);
         }
         catch (Exception e)
         {
             Console.WriteLine(e.Message);
         }
     }
 }