Exemple #1
0
 public void Task2790Test()
 {
     Assert.AreEqual(0.9205, Lab02.Task2790(6997), 0.0001);
     Assert.AreEqual(0.8572, Lab02.Task2790(31), 0.0001);
     Assert.AreEqual(0, Lab02.Task2790(90), 0.0001);
     Assert.AreEqual(1, Lab02.Task2790(0), 0.0001);
     Assert.AreEqual(1, Lab02.Task2790(180), 0.0001);
 }
Exemple #2
0
 static void Step2790()
 {
     Console.WriteLine();
     Console.WriteLine("2790");
     Console.WriteLine("{0:F6} ({1:F6})", Lab02.Task2790(6997), 0.9205);
     Console.WriteLine("{0:F6} ({1:F6})", Lab02.Task2790(31), 0.8572);
     Console.WriteLine("{0:F6} ({1:F6})", Lab02.Task2790(0), 1.0000);
 }