Example #1
0
 def test_c_summand_is_positive_when_m_and_n_are_both_lower_point(self):
     res = c_summand(
         f=self.default_f,
         m=0,
         n=0,
         comparison=self.default_comparison,
         sigma=self.default_sigma,
     )
     self.assertAlmostEqual(res, .250644809)
Example #2
0
 def test_c_summand_is_negative_when_m_is_higher_and_n_is_lower(self):
     res = c_summand(
         f=self.default_f,
         m=0,
         n=2,
         comparison=self.default_comparison,
         sigma=self.default_sigma,
     )
     self.assertAlmostEqual(res, -.250644809)
Example #3
0
 def test_c_summand_is_zero_when_neither_m_nor_n_is_in_the_comparison(self):
     res = c_summand(
         f=self.default_f,
         m=1,
         n=1,
         comparison=self.default_comparison,
         sigma=self.default_sigma,
     )
     self.assertAlmostEqual(res, 0.0)