def dup_resultant(f, g, K, includePRS=False):
 if includePRS:
  return dup_prs_resultant(f, g, K)
 return dup_prs_resultant(f, g, K)[0]

def dup_resultant ( f , g , K , includePRS = False ) : if includePRS : return dup_prs_resultant ( f , g , K ) return dup_prs_resultant ( f , g , K ) [ 0 ]
computes resultant of two polynomials in k[x] .