(f, j, u)
return _rec_degree_in(f, u, 0, j)
Return the leading degree of ``f`` in ``x_j`` in ``K[X]``.

    Examples
    ========

    >>> from sympy.polys.domains import ZZ
    >>> from sympy.polys.densebasic import dmp_degree_in

    >>> f = ZZ.map([[2], [1, 2, 3]])

    >>> dmp_degree_in(f, 0, 1)
    1
    >>> dmp_degree_in(f, 1, 1)
    2
Return the leading degree of ``f`` in ``x_j`` in ``K[X]``.
Return the leading degree of f in x_j in K [ X ] .
def dmp_degree_in(f, j, u):
    """
    Return the leading degree of ``f`` in ``x_j`` in ``K[X]``.

    Examples
    ========

    >>> from sympy.polys.domains import ZZ
    >>> from sympy.polys.densebasic import dmp_degree_in

    >>> f = ZZ.map([[2], [1, 2, 3]])

    >>> dmp_degree_in(f, 0, 1)
    1
    >>> dmp_degree_in(f, 1, 1)
    2

    """
    if not j:
        return dmp_degree(f, u)
    if j < 0 or j > u:
        raise IndexError("0 <= j <= %s expected, got %s" % (u, j))

    return _rec_degree_in(f, u, 0, j)
def dmp_degree_in ( f , j , u ) : if not j : return dmp_degree ( f , u ) if j < 0 or j > u : raise IndexError ( "0 <= j <= %s expected, got %s" % ( u , j ) ) return _rec_degree_in ( f , u , 0 , j )