(f, K)
return [ K.abs(coeff) for coeff in f ]
Make all coefficients positive in ``K[x]``.

    Examples
    ========

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

    >>> R.dup_abs(x**2 - 1)
    x**2 + 1
Make all coefficients positive in ``K[x]``.
Make all coefficients positive in K [ x ] .
def dup_abs(f, K):
    """
    Make all coefficients positive in ``K[x]``.

    Examples
    ========

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

    >>> R.dup_abs(x**2 - 1)
    x**2 + 1

    """
    return [ K.abs(coeff) for coeff in f ]
def dup_abs ( f , K ) : return [ K . abs ( coeff ) for coeff in f ]