up previous next
deg

the degree of a polynomial or vector

Syntax
deg(F:POLY):INT
deg(F:POLY, X:INDET):INT
deg(F:VECTOR):INT --***OBSOLETE MANUAL: WORK IN PROGRESS***
deg(F:VECTOR, X:INDET):INT --***OBSOLETE MANUAL: WORK IN PROGRESS***

Description
The first form of this function returns the (weighted) degree of F. The second form returns the (un-weighted) degree of the indeterminate X in F. In either case, if F is a vector, the maximum of the degrees of its components is returned. (For the degree of a ring or quotient object, see Multiplicity .)

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

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

/**/  Ws := RowMat([2,3]);
/**/  P := NewPolyRing(QQ, ["x","y"], CompleteToOrd(Ws), 1);
/**/  deg(x*y^2+y);
3
/**/  wdeg(x*y^2+y);
[8]
/**/  deg(x*y^2+y, x);
1
/**/  wdeg(x*y^2+y, x);
2
/**/  Deg(Vector(x^2, xy^3+y, x^2-y^5)); --***OBSOLETE MANUAL: WORK IN PROGRESS***
5
/**/  Deg(Vector(x^2, xy^3+y, x^2-y^5), x); --***OBSOLETE MANUAL: WORK IN PROGRESS***
2

See Also