(f, j=0)
Returns the leading degree of ``f`` in ``x_j``.
Returns the leading degree of ``f`` in ``x_j``.
Returns the leading degree of f in x_j .
def degree(f, j=0):
        """Returns the leading degree of ``f`` in ``x_j``. """
        if isinstance(j, int):
            return dmp_degree_in(f.rep, j, f.lev)
        else:
            raise TypeError("``int`` expected, got %s" % type(j))
def degree ( f , j = 0 ) : if isinstance ( j , int ) : return dmp_degree_in ( f . rep , j , f . lev ) else : raise TypeError ( "``int`` expected, got %s" % type ( j ) )