#NEWLINE# def test_Identity( ) : #NEWLINE# #INDENT# A = MatrixSymbol ( 'A' , n , m ) #NEWLINE# In = Identity ( n ) #NEWLINE# Im = Identity ( m ) #NEWLINE# assert ( ( A * Im ) == A ) #NEWLINE# assert ( ( In * A ) == A ) #NEWLINE# assert ( transpose ( In ) == In ) #NEWLINE# assert ( In . inverse ( ) == In ) #NEWLINE# assert ( In . conjugate ( ) == In )