def test_ADmath_arctanr(): f = ADmath.arctan(1) assert f == np.arctan(1)
def test_ADmath_arctan(): f = ADmath.arctan(ADnum(1, der=1)) assert f.val == np.arctan(1) assert f.der == .5 assert len(f.graph) == 1
def test_ADmath_arctanr(): f = ADmath.arctan(1) assert f == np.arctan(1)
def test_ADmath_arctan(): f = ADmath.arctan(ADnum(1, der=1)) assert f.val == np.arctan(1) assert f.der == .5 assert len(f.graph) == 1