def test_fermi_poly2_float(self): testfloat = 1. assert_approx_equal(- lerch.Li(2, -np.exp(testfloat)), \ polylog.fermi_poly2(testfloat), significant=7)
def setup(self): self.xx1 = np.linspace(-25., 25., 250) self.exact1 = - lerch.Li(3, -np.exp(self.xx1))
def test_fermi_poly3_int(self): testint = 1 assert_approx_equal(- lerch.Li(3, -np.exp(testint)), \ polylog.fermi_poly3(testint), significant=7)