#NEWLINE# def ldiv( self ) : #NEWLINE# #INDENT# name = 'monomial_ldiv' #NEWLINE# template = dedent ( '        def %(name)s(A, B):\n            (%(A)s,) = A\n            (%(B)s,) = B\n            return (%(AB)s,)\n        ' ) #NEWLINE# A = self . _vars ( 'a' ) #NEWLINE# B = self . _vars ( 'b' ) #NEWLINE# AB = [ ( '%s - %s' % ( a , b ) ) for ( a , b ) in zip ( A , B ) ] #NEWLINE# code = ( template % dict ( name = name , A = ', ' . join ( A ) , B = ', ' . join ( B ) , AB = ', ' . join ( AB ) ) ) #NEWLINE# return self . _build ( B , name )