#NEWLINE# def test_roots_repeated( self ) : #NEWLINE# #INDENT# c = np . array ( [ [ 1 , 0 , ( - 1 ) ] , [ ( - 1 ) , 0 , 0 ] ] ) . T #NEWLINE# x = np . array ( [ ( - 1 ) , 0 , 1 ] ) #NEWLINE# pp = PPoly ( pp , x ) #NEWLINE# assert_array_equal ( pp . roots ( ) , [ ( - 2 ) , 0 ] ) #NEWLINE# assert_array_equal ( pp . roots ( extrapolate = False ) , [ 0 ] )