def dmp_resultant(f, g, u, K, includePRS=False):
 if (not u):
  return dup_resultant(f, g, K, includePRS=includePRS)
 if includePRS:
  return dmp_prs_resultant(f, g, u, K)
 if K.has_Field:
  if (K.is_QQ and query('USE_COLLINS_RESULTANT')):
   return dmp_qq_collins_resultant(f, g, u, K)
 elif (K.is_ZZ and query('USE_COLLINS_RESULTANT')):
  return dmp_zz_collins_resultant(f, g, u, K)
 return dmp_prs_resultant(f, g, u, K)[0]

def dmp_resultant ( f , g , u , K , includePRS = False ) : if ( not u ) : return dup_resultant ( f , g , K , includePRS = includePRS ) if includePRS : return dmp_prs_resultant ( f , g , u , K ) if K . has_Field : if ( K . is_QQ and query ( 'USE_COLLINS_RESULTANT' ) ) : return dmp_qq_collins_resultant ( f , g , u , K ) elif ( K . is_ZZ and query ( 'USE_COLLINS_RESULTANT' ) ) : return dmp_zz_collins_resultant ( f , g , u , K ) return dmp_prs_resultant ( f , g , u , K ) [ 0 ]
computes resultant of two polynomials in k[x] .