def dmp_primitive_prs(f, g, u, K):
 if (not u):
  return dup_primitive_prs(f, g, K)
 else:
  raise MultivariatePolynomialError(f, g)

def dmp_primitive_prs ( f , g , u , K ) : if ( not u ) : return dup_primitive_prs ( f , g , K ) else : raise MultivariatePolynomialError ( f , g )
primitive polynomial remainder sequence in k[x] .