(f, p, u, K)
return dmp_strip([ dmp_ground_trunc(c, p, v, K) for c in f ], u)
Reduce a ``K[X]`` polynomial modulo a constant ``p`` in ``K``.

    Examples
    ========

    >>> from sympy.polys import ring, ZZ
    >>> R, x,y = ring("x,y", ZZ)

    >>> f = 3*x**2*y + 8*x**2 + 5*x*y + 6*x + 2*y + 3

    >>> R.dmp_ground_trunc(f, ZZ(3))
    -x**2 - x*y - y
Reduce a ``K[X]`` polynomial modulo a constant ``p`` in ``K``.
Reduce a K [ X ] polynomial modulo a constant p in K .
def dmp_ground_trunc(f, p, u, K):
    """
    Reduce a ``K[X]`` polynomial modulo a constant ``p`` in ``K``.

    Examples
    ========

    >>> from sympy.polys import ring, ZZ
    >>> R, x,y = ring("x,y", ZZ)

    >>> f = 3*x**2*y + 8*x**2 + 5*x*y + 6*x + 2*y + 3

    >>> R.dmp_ground_trunc(f, ZZ(3))
    -x**2 - x*y - y

    """
    if not u:
        return dup_trunc(f, p, K)

    v = u - 1

    return dmp_strip([ dmp_ground_trunc(c, p, v, K) for c in f ], u)
def dmp_ground_trunc ( f , p , u , K ) : if not u : return dup_trunc ( f , p , K ) v = u - 1 return dmp_strip ( [ dmp_ground_trunc ( c , p , v , K ) for c in f ] , u )