#NEWLINE# def as_expr( self , * symbols ) : #NEWLINE# #INDENT# if ( symbols and ( len ( symbols ) != self . ring . ngens ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'not enough symbols, expected %s got %s' % ( self . ring . ngens , len ( symbols ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# symbols = self . ring . symbols #NEWLINE# #UNINDENT# return expr_from_dict ( self . as_expr_dict ( ) , * self )