CoCoA:Deg
From ApCoCoAWiki
Deg
the degree of a polynomial or vector
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 <ttref>Multiplicity</ttref>.)
Example
Use R ::= Q[x,y]; Deg(xy^2+y); 3 ------------------------------- Deg(xy^2+y, x); 1 ------------------------------- Use R ::= Q[x,y], Weights(2,3); Deg(xy^2+y); 8 ------------------------------- Deg(xy^2+y, x); 1 ------------------------------- Deg(Vector(x^2, xy^3+y, x^2-y^5)); 5 ------------------------------- Deg(Vector(x^2, xy^3+y, x^2-y^5), x); 2 ------------------------------
Syntax
Deg(F:POLY or VECTOR):INT Deg(F:POLY or VECTOR,X:INDET):INT
<type>polynomial</type> <type>ring</type> <type>vector</type>