#NEWLINE# def test_bad_geneig( self ) : #NEWLINE# #INDENT# def matrices( omega ) : #NEWLINE# #INDENT# c1 = ( ( - 9 ) + ( omega ** 2 ) ) #NEWLINE# c2 = ( 2 * omega ) #NEWLINE# A = [ [ 1 , 0 , 0 , 0 ] , [ 0 , 1 , 0 , 0 ] , [ 0 , 0 , c1 , 0 ] , [ 0 , 0 , 0 , c1 ] ] #NEWLINE# B = [ [ 0 , 0 , 1 , 0 ] , [ 0 , 0 , 0 , 1 ] , [ 1 , 0 , 0 , ( - c2 ) ] , [ 0 , 1 , c2 , 0 ] ] #NEWLINE# return ( A , B ) #NEWLINE# #UNINDENT# olderr = np . seterr ( all = 'ignore' ) #NEWLINE# try : #NEWLINE# #INDENT# for k in xrange ( 100 ) : #NEWLINE# #INDENT# ( A , B ) = matrices ( omega = ( ( k * 5.0 ) / 100 ) ) #NEWLINE# self . _check_gen_eig ( A , B ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# np . seterr ( ** olderr )