(self)
return p
Leading monomial as a polynomial element.

        Examples
        --------
        >>> from sympy.polys.rings import ring
        >>> from sympy.polys.domains import ZZ

        >>> _, x, y = ring('x, y', ZZ)
        >>> (3*x*y + y**2).leading_monom()
        x*y
Leading monomial as a polynomial element.
Leading monomial as a polynomial element .
def leading_monom(self):
        """
        Leading monomial as a polynomial element.

        Examples
        --------
        >>> from sympy.polys.rings import ring
        >>> from sympy.polys.domains import ZZ

        >>> _, x, y = ring('x, y', ZZ)
        >>> (3*x*y + y**2).leading_monom()
        x*y

        """
        p = self.ring.zero
        expv = self.leading_expv()
        if expv:
            p[expv] = self.ring.domain.one
        return p
def leading_monom ( self ) : p = self . ring . zero expv = self . leading_expv ( ) if expv : p [ expv ] = self . ring . domain . one return p