def dmp_lcm(f, g, u, K):
 if (not u):
  return dup_lcm(f, g, K)
 if K.has_Field:
  return dmp_ff_lcm(f, g, u, K)
 else:
  return dmp_rr_lcm(f, g, u, K)

def dmp_lcm ( f , g , u , K ) : if ( not u ) : return dup_lcm ( f , g , K ) if K . has_Field : return dmp_ff_lcm ( f , g , u , K ) else : return dmp_rr_lcm ( f , g , u , K )
computes polynomial lcm of f and g in k[x] .