(self, e)
return self._in_terms_of_generators(e)
Express element ``e`` of ``self`` in terms of the generators.

        >>> from sympy.abc import x
        >>> from sympy import QQ
        >>> F = QQ.old_poly_ring(x).free_module(2)
        >>> M = F.submodule([1, 0], [1, 1])
        >>> M.in_terms_of_generators([x, x**2])
        [-x**2 + x, x**2]
Express element ``e`` of ``self`` in terms of the generators.
Express element e of self in terms of the generators .
def in_terms_of_generators(self, e):
        """
        Express element ``e`` of ``self`` in terms of the generators.

        >>> from sympy.abc import x
        >>> from sympy import QQ
        >>> F = QQ.old_poly_ring(x).free_module(2)
        >>> M = F.submodule([1, 0], [1, 1])
        >>> M.in_terms_of_generators([x, x**2])
        [-x**2 + x, x**2]
        """
        try:
            e = self.convert(e)
        except CoercionFailed:
            raise ValueError('%s is not an element of %s' % (e, self))
        return self._in_terms_of_generators(e)
def in_terms_of_generators ( self , e ) : try : e = self . convert ( e ) except CoercionFailed : raise ValueError ( '%s is not an element of %s' % ( e , self ) ) return self . _in_terms_of_generators ( e )