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