1.1.9 Tutorial: polynomials |
Example |
/**/ use P ::= QQ[x,y]; // polys in x,y with coefficients in QQ /**/ f := (2*x^2+y)^3; f; 8*x^6 +12*x^4*y +6*x^2*y^2 +y^3 /**/ [LM(f), LC(f), LT(f)]; [8*x^6, 8, x^6] /**/ monomials(f); [8*x^6, 12*x^4*y, 6*x^2*y^2, y^3] /**/ coefficients(f); [8, 12, 6, 1] /**/ support(f); [x^6, x^4*y, x^2*y^2, y^3] /**/ CoeffListWRT(f,x); [y^3, 0, 6*y^2, 0, 12*y, 0, 8] |