(f)
return cont
Returns GCD of polynomial's coefficients.
Returns GCD of polynomial's coefficients.
Returns GCD of polynomial s coefficients .
def content(f):
        """Returns GCD of polynomial's coefficients. """
        domain = f.ring.domain
        cont = domain.zero
        gcd = domain.gcd

        for coeff in f.itercoeffs():
            cont = gcd(cont, coeff)

        return cont
def content ( f ) : domain = f . ring . domain cont = domain . zero gcd = domain . gcd for coeff in f . itercoeffs ( ) : cont = gcd ( cont , coeff ) return cont