(self)
return p
Leading term 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_term()
        3*x*y
Leading term as a polynomial element.
Leading term as a polynomial element .
def leading_term(self):
        """Leading term 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_term()
        3*x*y

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