#NEWLINE# def test_antiderivative_regression_4355( self ) : #NEWLINE# #INDENT# p = PPoly ( [ [ 1.0 , 0.5 ] ] , [ 0 , 1 , 2 ] ) #NEWLINE# q = p . antiderivative ( ) #NEWLINE# assert_equal ( q . c , [ [ 1 , 0.5 ] , [ 0 , 1 ] ] ) #NEWLINE# assert_equal ( p . x , [ 0 , 1 , 2 ] ) #NEWLINE# assert_allclose ( p . integrate ( 0 , 2 ) , 1.5 ) #NEWLINE# assert_allclose ( ( q ( 2 ) - q ( 0 ) ) , 1.5 )