Previous Up Next

6.28.15  PGCD des coefficients d’un polynôme : content

content a comme arguments un polynôme P donné sous forme symbolique ou par la liste de ses coefficients et le nom de la variable (par défaut c’est x).
content désigne le PGCD (plus grand commun diviseur) des coefficients du polynôme P.
On tape :

content(6*x^2-3*x+9)

ou on tape :

content(6*t^2-3*t+9,t)

On obtient :

3

ou on tape :

content([6,-3,9]))

On obtient :

poly1[3]

On tape :

content(6*x^2*(y^3-y)-3*x*(y^3-1)+9*(y-1))

On obtient :

3*y-3

ou on tape :

content([6*(y^3-y),-3*(y^3-1),9*(y-1)])

On obtient :

poly1[3*y-3]

On tape :

content(6*x^2*(y^3-y)-3*x*(y^3-1)+9*(y-1),y)

ou:

content([3x,0,6*x^2+9,-9-3x])

On obtient :

3

Previous Up Next