(self)
Efficiently extract the coefficient of a summation.
Efficiently extract the coefficient of a summation.
Efficiently extract the coefficient of a summation .
def as_coeff_Add(self):
        """Efficiently extract the coefficient of a summation. """
        coeff, args = self.args[0], self.args[1:]

        if coeff.is_Number:
            if len(args) == 1:
                return coeff, args[0]
            else:
                return coeff, self._new_rawargs(*args)
        else:
            return S.Zero, self
def as_coeff_Add ( self ) : coeff , args = self . args [ 0 ] , self . args [ 1 : ] if coeff . is_Number : if len ( args ) == 1 : return coeff , args [ 0 ] else : return coeff , self . _new_rawargs ( * args ) else : return S . Zero , self