def test_arctan_n1(self): x = 0.123 a = nthderiv.arctan(x, n=1) b = 1 / (x * x + 1) assert_allclose(a, b)
def test_arctan_n1(self): x = 0.123 a = nthderiv.arctan(x, n=1) b = 1 / (x*x + 1) assert_allclose(a, b)
def test_arctan_n0(self): x = 0.123 a = nthderiv.arctan(x, n=0) b = np.arctan(x) assert_allclose(a, b)