#NEWLINE# def test_hermite( self ) : #NEWLINE# #INDENT# xs = [ 0 , 0 , 0 , 1 , 1 , 1 , 2 ] #NEWLINE# ys = [ self . true_poly ( 0 ) , self . true_poly . deriv ( 1 ) ( 0 ) , self . true_poly . deriv ( 2 ) ( 0 ) , self . true_poly ( 1 ) , self . true_poly . deriv ( 1 ) ( 1 ) , self . true_poly . deriv ( 2 ) ( 1 ) , self . true_poly ( 2 ) ] #NEWLINE# P = KroghInterpolator ( self . xs , self . ys ) #NEWLINE# assert_almost_equal ( self . true_poly ( self . test_xs ) , P ( self . test_xs ) )