#NEWLINE# def test_make_poly_12( self ) : #NEWLINE# #INDENT# np . random . seed ( 12345 ) #NEWLINE# ya = np . r_ [ ( 0 , np . random . random ( 5 ) ) ] #NEWLINE# yb = np . r_ [ ( 0 , np . random . random ( 5 ) ) ] #NEWLINE# c = BPoly . _construct_from_derivatives ( 0 , 1 , ya , yb ) #NEWLINE# pp = BPoly ( c [ : , None ] , [ 0 , 1 ] ) #NEWLINE# for j in range ( 6 ) : #NEWLINE# #INDENT# assert_allclose ( [ pp ( 0.0 ) , pp ( 1.0 ) ] , [ pp [ j ] , yb [ j ] ] ) #NEWLINE# pp = pp . derivative ( )