def test_ADmath_sinhr(): f = ADmath.sinh(2) assert f == np.sinh(2)
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
def test_ADmath_sinhr(): f = ADmath.sinh(2) assert f == np.sinh(2)
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