#NEWLINE# def test_antiderivative_continuity( self ) : #NEWLINE# #INDENT# c = np . array ( [ [ 2 , 1 , 2 , 2 ] , [ 2 , 1 , 3 , 3 ] ] ) . T #NEWLINE# x = np . array ( [ 0 , 0.5 , 1 ] ) #NEWLINE# p = PPoly ( c , x ) #NEWLINE# ip = p . antiderivative ( ) #NEWLINE# assert_allclose ( ip ( ( 0.5 - 1e-09 ) ) , ip ( ( 0.5 + 1e-09 ) ) , rtol = 1e-08 ) #NEWLINE# p2 = ip . derivative ( ) #NEWLINE# assert_allclose ( p2 . c , p . c )