up previous next
DensePoly

the sum of all power-products of a given degree

Syntax
DensePoly(R: RING, N: INT): RINGELEM

Description
This function returns the sum of all power-products of (standard) degree N .

Example
/**/  use R ::= QQ[x,y];
/**/  DensePoly(R,3);
x^3 + x^2*y + x*y^2 + y^3

/**/  Weights := RowMat([2,3]);
/**/  P := NewPolyRing(QQ, "x,y", MakeTermOrd(Weights), 1);
/**/  use P;
/**/  DensePoly(P,1);  // NOTE: standard degree!!
y +x