def test_ADmath_coshr(): f = ADmath.cosh(3) assert f == np.cosh(3)
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
def test_ADmath_coshr(): f = ADmath.cosh(3) assert f == np.cosh(3)
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