### 2.25.10 LCM of two polynomials : `lcm`

`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 :

`lcm(x``^`

`2+2*x+1,x``^`

`2-1)`

Output :

`(x+1)*(x``^`

`2-1)`

Input :

`lcm(x,x``^`

`2+2*x+1,x``^`

`2-1)`

or

`lcm([x,x``^`

`2+2*x+1,x``^`

`2-1])`

Output :

`(x``^`

`2+x)*(x``^`

`2-1)`