예제 #1
0
def test_ADmath_sinhr():
    f = ADmath.sinh(2)
    assert f == np.sinh(2)
예제 #2
0
def test_ADmath_sinh():
    f = ADmath.sinh(ADnum(2, der=1))
    assert f.val == np.sinh(2)
    assert f.der == np.cosh(2)
    assert len(f.graph) == 1