#NEWLINE# def test_antider_neg( self ) : #NEWLINE# #INDENT# c = [ [ 1 ] ] #NEWLINE# x = [ 0 , 1 ] #NEWLINE# b = BPoly ( c , x ) #NEWLINE# xx = np . linspace ( 0 , 1 , 21 ) #NEWLINE# assert_allclose ( b . derivative ( ( - 1 ) ) ( xx ) , b . antiderivative ( ) ( xx ) , atol = 1e-12 , rtol = 1e-12 ) #NEWLINE# assert_allclose ( b . derivative ( 1 ) ( self ) , b . antiderivative ( ( - 1 ) ) ( xx ) , atol = 1e-12 , rtol = 1e-12 )