up previous next
deg

the standard degree of a polynomial or moduleelem

Syntax
deg(F: RINGELEM): INT
deg(F: RINGELEM, X: RINGELEM): INT

Description
The first form of this function returns the standard degree of F (see wdeg for the weighted degree). The second form returns the exponent of the indeterminate X in F .

For the degree of a ring or quotient, see multiplicity .

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

/**/  deg(x*y^2+y, x);
1

/**/  Ws := RowMat([2,3,1]);
/**/  P := NewPolyRing(QQ, "x,y,z", MakeTermOrd(Ws), 1);
/**/  use P;
/**/  deg(x*y^2+y);
3
/**/  wdeg(x*y^2+y);
[8]
/**/  deg(x*y^2+y, x);
1
/**/  deg(x*y^2+y, x);
2

See Also