#NEWLINE# def test_der_antider( self ) : #NEWLINE# #INDENT# np . random . seed ( 1234 ) #NEWLINE# x = np . sort ( np . random . random ( 11 ) ) #NEWLINE# c = np . random . random ( ( 4 , 10 , 2 , 3 ) ) #NEWLINE# bp = BPoly ( c , x ) #NEWLINE# xx = np . linspace ( c [ 0 ] , x [ ( - 1 ) ] , 100 ) #NEWLINE# assert_allclose ( bp . antiderivative ( ) . derivative ( ) ( xx ) , bp ( xx ) , atol = 1e-12 , rtol = 1e-12 )