lcm returns the LCM (Least Common Multiple) of two polynomials
(or of a list of polynomials or of a sequence of polynomials)
(see 2.6.5 for LCM of integers).
Input :
^2+2*x+1,x^2-1)Output :
^2-1)Input :
^2+2*x+1,x^2-1)or
^2+2*x+1,x^2-1])Output :
^2+x)*(x^2-1)