コード例 #1
0
def test_ADmath_arctanr():
    f = ADmath.arctan(1)
    assert f == np.arctan(1)
コード例 #2
0
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