コード例 #1
0
ファイル: test_polylog.py プロジェクト: akeshet/Odysseus
 def test_fermi_poly2_float(self):
     testfloat = 1.0
     assert_approx_equal(-lerch.Li(2, -np.exp(testfloat)), polylog.fermi_poly2(testfloat), significant=7)
コード例 #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)
コード例 #3
0
ファイル: test_polylog.py プロジェクト: akeshet/Odysseus
 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)
コード例 #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)