(self)
return set(res)
Get all the variables present
        in this polynomials.
Get all the variables present
        in this polynomials.
Get all the variables present in this polynomials .
def variables(self) -> Set:
        """
        Get all the variables present
        in this polynomials.
        """
        res = set()
        for i in self.all_monomials():
            res |= {j for j in i.variables}
        res = list(res)
        # res.sort()
        return set(res)
def variables ( self ) -> Set : res = set ( ) for i in self . all_monomials ( ) : res |= { j for j in i . variables } res = list ( res ) # res.sort() return set ( res )