def dmp_ground_content(f, u, K):
    from sympy.polys.domains import QQ

    if not u:
        return dup_content(f, K)

    if dmp_zero_p(f, u):
        return K.zero

    cont, v = K.zero, u - 1

    if K == QQ:
        for c in f:
            cont = K.gcd(cont, dmp_ground_content(c, v, K))
    else:
        for c in f:
            cont = K.gcd(cont, dmp_ground_content(c, v, K))

            if K.is_one(cont):
                break

    return cont
Set ResourceSync Description link to given URI
dataset/ETHPy150Open sympy/sympy/sympy/polys/densetools.py/dmp_ground_content--crossover with--dataset/ETHPy150Open resync/resync/resync/resource_container.py/ResourceContainer.describedby