def dmp_sqf_p(f, u, K):
    if dmp_zero_p(f, u):
        return True
    else:
        return not dmp_degree(dmp_gcd(f, dmp_diff(f, 1, u, K), u, K), u)
Return ``True`` if ``f`` is a square-free polynomial in ``K[X]``.
dataset/ETHPy150Open sympy/sympy/sympy/polys/sqfreetools.py/dmp_sqf_p