def test_ADmath_cotr(): f = ADmath.cot(1) assert f == 1 / np.tan(1)
def test_ADmath_cot(): f = ADmath.cot(ADnum(1, der=1)) assert f.val == 1 / np.tan(1) assert f.der == -1 / (np.sin(1)**2) assert len(f.graph) == 1
def test_ADmath_cotr(): f = ADmath.cot(1) assert f == 1 / np.tan(1)
def test_ADmath_cot(): f = ADmath.cot(ADnum(1, der=1)) assert f.val == 1 / np.tan(1) assert f.der == -1 / (np.sin(1)**2) assert len(f.graph) == 1