#NEWLINE# def test_simple_trap( self ) : #NEWLINE# #INDENT# a = [ [ 8 , 2 , 3 ] , [ 2 , 9 , 3 ] ] #NEWLINE# ( r , q ) = rq ( a ) #NEWLINE# assert_array_almost_equal ( dot ( transpose ( q ) , q ) , identity ( 3 ) ) #NEWLINE# assert_array_almost_equal ( dot ( r , q ) , a )