#NEWLINE# def test_zeros( self ) : #NEWLINE# #INDENT# xi = [ 0 , 1 , 2 , 3 ] #NEWLINE# yi = [ [ 0 , 0 ] , [ 0 ] , [ 0 , 0 ] , [ 0 , 0 ] ] #NEWLINE# pp = BPoly . from_derivatives ( xi , yi ) #NEWLINE# assert_ ( ( pp . c . shape == ( 4 , 3 ) ) ) #NEWLINE# ppd = pp . derivative ( ) #NEWLINE# for xp in [ 0.0 , 0.1 , 1.0 , 1.1 , 1.9 , 2.0 , 2.5 ] : #NEWLINE# #INDENT# assert_allclose ( [ pp ( xp ) , ppd ( xp ) ] , [ 0.0 , 0.0 ] )