Esempio n. 1
0
 def test_fermi_poly2_float(self):
     testfloat = 1.0
     assert_approx_equal(-lerch.Li(2, -np.exp(testfloat)), polylog.fermi_poly2(testfloat), significant=7)
Esempio n. 2
0
 def test_fermi_poly2_float(self):
     testfloat = 1.
     assert_approx_equal(- lerch.Li(2, -np.exp(testfloat)), \
                         polylog.fermi_poly2(testfloat), significant=7)
Esempio n. 3
0
 def test_fermi_poly2(self):
     fp_approx1 = polylog.fermi_poly2(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)
Esempio n. 4
0
 def test_fermi_poly2(self):
     fp_approx1 = polylog.fermi_poly2(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)