Example #1
0
 def test_fermi_poly3_float(self):
     testfloat = 1.0
     assert_approx_equal(-lerch.Li(3, -np.exp(testfloat)), polylog.fermi_poly3(testfloat), significant=7)
Example #2
0
 def test_fermi_poly3_float(self):
     testfloat = 1.
     assert_approx_equal(- lerch.Li(3, -np.exp(testfloat)), \
                         polylog.fermi_poly3(testfloat), significant=7)
Example #3
0
 def test_fermi_poly3_array(self):
     fp_approx1 = polylog.fermi_poly3(self.xx1)
     # the polynomial approximation should be good to 1e-7, fails for
     # higher precision test
     assert_array_almost_equal(self.exact1, fp_approx1, decimal=7)
Example #4
0
 def test_fermi_poly3_array(self):
     fp_approx1 = polylog.fermi_poly3(self.xx1)
     # the polynomial approximation should be good to 1e-7, fails for
     # higher precision test
     assert_array_almost_equal(self.exact1, fp_approx1, decimal=7)