コード例 #1
0
def test_ADmath_coshr():
    f = ADmath.cosh(3)
    assert f == np.cosh(3)
コード例 #2
0
def test_ADmath_cosh():
    f = ADmath.cosh(ADnum(3, der=1))
    assert f.val == np.cosh(3)
    assert f.der == np.sinh(3)
    assert len(f.graph) == 1