Ejemplo n.º 1
0
 def test_erfc(self):
     # Assert complementary error function.
     for x, y in [(-3.00, 2.000), (-2.00, 1.995), (-1.00, 1.843),
                  (-0.50, 1.520), (-0.25, 1.276), (0.00, 1.000),
                  (0.25, 0.724), (0.50, 0.480), (1.00, 0.157),
                  (2.00, 0.005), (3.00, 0.000)]:
         self.assertAlmostEqual(metrics.erfc(x), y, places=3)
     print("pattern.metrics.erfc()")
Ejemplo n.º 2
0
 def test_erfc(self):
     # Assert complementary error function.
     for x, y in [
       (-3.00, 2.000),
       (-2.00, 1.995),
       (-1.00, 1.843),
       (-0.50, 1.520),
       (-0.25, 1.276),
       ( 0.00, 1.000),
       ( 0.25, 0.724),
       ( 0.50, 0.480),
       ( 1.00, 0.157),
       ( 2.00, 0.005),
       ( 3.00, 0.000)]:
         self.assertAlmostEqual(metrics.erfc(x), y, places=3)
     print("pattern.metrics.erfc()")