#NEWLINE# def _eval_trace( self ) : #NEWLINE# #INDENT# ( factor , mmul ) = self . as_coeff_mmul ( ) #NEWLINE# if ( factor != 1 ) : #NEWLINE# #INDENT# from . trace import trace #NEWLINE# return ( factor * trace ( mmul . doit ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise NotImplementedError ( "Can't simplify any further" )