예제 #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)
예제 #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)
예제 #3
0
 def test_arctan_n0(self):
     x = 0.123
     a = nthderiv.arctan(x, n=0)
     b = np.arctan(x)
     assert_allclose(a, b)
예제 #4
0
 def test_arctan_n0(self):
     x = 0.123
     a = nthderiv.arctan(x, n=0)
     b = np.arctan(x)
     assert_allclose(a, b)