(f, p)
return gf_strip([ a % p for a in f ])
Reduce all coefficients modulo ``p``.

    Examples
    ========

    >>> from sympy.polys.galoistools import gf_trunc

    >>> gf_trunc([7, -2, 3], 5)
    [2, 3, 3]
Reduce all coefficients modulo ``p``.
Reduce all coefficients modulo p .
def gf_trunc(f, p):
    """
    Reduce all coefficients modulo ``p``.

    Examples
    ========

    >>> from sympy.polys.galoistools import gf_trunc

    >>> gf_trunc([7, -2, 3], 5)
    [2, 3, 3]

    """
    return gf_strip([ a % p for a in f ])
def gf_trunc ( f , p ) : return gf_strip ( [ a % p for a in f ] )