up previous next
wdeg

multi-degree of an polynomial

Syntax
wdeg(F: RINGELEM): LIST

Description
This function returns the multi-weighted degree of F, as determined by the matrix weights of the polynomial ring of F. The function deg returns the standard degree.

NOTE: In CoCoA-4 deg gave the weight given by only the first row of the weights matrix.

Example
/**/  M := matrix([[2,3,4], [1,0,2], [1,0,0]]);
/**/  P := NewPolyRing(QQ, "x,y,z", M, 1);  -- GradingDim=1
/**/  Use P;
/**/  wdeg(x*y^2+y);
[8]
/**/  P := NewPolyRing(QQ, "x,y,z", M, 2);  -- GradingDim=2
/**/  Use P;
/**/  wdeg(x*y^2+y);
[8, 1]
/**/  deg(x*y^2+y);
3

/**/  P4 := NewFreeModule(P,4); -- the default module ordering is TOPos
/**/  wdeg(ModuleElem(P4, [0, x, y^2, x^2]));
[6, 0]

/**/  LT(ModuleElem(P4, [0, x, y^2, x^2]));
[0, 0, y^2, 0]

See Also