def dup_sqf_p(f, K):
    if not f:
        return True
    else:
        return not dup_degree(dup_gcd(f, dup_diff(f, 1, K), K))
Return ``True`` if ``f`` is a square-free polynomial in ``K[x]``.
dataset/ETHPy150Open sympy/sympy/sympy/polys/sqfreetools.py/dup_sqf_p