def test_ADmath_arcsinr(): f = ADmath.arcsin(.2) assert f == np.arcsin(.2)
def test_ADmath_arcsin(): f = ADmath.arcsin(ADnum(.2, der=1)) assert f.val == np.arcsin(.2) assert f.der == 1 / (np.sqrt(1 - .2**2)) assert len(f.graph) == 1
def test_ADmath_arcsinr(): f = ADmath.arcsin(.2) assert f == np.arcsin(.2)
def test_ADmath_arcsin(): f = ADmath.arcsin(ADnum(.2, der=1)) assert f.val == np.arcsin(.2) assert f.der == 1 / (np.sqrt(1 - .2**2)) assert len(f.graph) == 1