#NEWLINE# def simplify( self , ratio = 1.7 , measure = count_ops ) : #NEWLINE# #INDENT# "\n        Implements the SymPy simplify routine for this quantity.\n\n        simplify's documentation\n        ========================\n\n        " #NEWLINE# simp_components = [ ( simp ( v , ratio , simp_components ) * k ) for ( k , v ) in self . components . items ( ) ] #NEWLINE# return self . _add_func ( * simp_components )