next up previous contents index
suivant: Bézout's Identity : egcd monter: Arithmetic and polynomials précédent: Choosing the GCD algorithm   Table des matières   Index


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 1.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)



giac documentation written by Renée De Graeve and Bernard Parisse