def dup_div(f, g, K):
 if K.has_Field:
  return dup_ff_div(f, g, K)
 else:
  return dup_rr_div(f, g, K)

def dup_div ( f , g , K ) : if K . has_Field : return dup_ff_div ( f , g , K ) else : return dup_rr_div ( f , g , K )
polynomial division with remainder in k[x] .