#NEWLINE# def dmp_sqf_p( f , u , K ) : #NEWLINE# #INDENT# '\n    Return ``True`` if ``f`` is a square-free polynomial in ``K[X]``.\n\n    Examples\n    ========\n\n    >>> from sympy.polys import ring, ZZ\n    >>> R, x,y = ring("x,y", ZZ)\n\n    >>> R.dmp_sqf_p(x**2 + 2*x*y + y**2)\n    False\n    >>> R.dmp_sqf_p(x**2 + y**2)\n    True\n\n    ' #NEWLINE# if dmp_zero_p ( f , u ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( not dmp_degree ( dmp_gcd ( f , dmp_diff ( f , 1 , u , K ) , u , f ) , u ) )