5.1.14 deg
----------

Syntax:
deg ( poly_expression )

deg ( vector_expression )

deg ( poly_expression , intvec_expression )

deg ( vector_expression , intvec_expression )
Type:
int
Purpose:
returns the maximal (weighted) degree of
the terms of a polynomial or a vector;

deg(0) is -1.

The optional second argument gives the weight vector,
the default weights of the base ring will be used otherwise.
Example:
  ring r=0,(x,y,z),lp;
  deg(0);
==> -1
  deg(x3+y4+xyz3);
==> 5
  ring rr=7,(x,y),wp(2,3);
  poly f=x2+y3;
  deg(f);
==> 9
  ring R=7,(x,y),ws(2,3);
  poly f=x2+y3;
  deg(f);
==> 9
  vector v=[x2,y];
  deg(v);
==> 4
See
jet;
ord;
poly;
vector.
<font size="-1">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http://www.singular.uni-kl.de/"><i>Singular</i></a> version 2-0-4, October 2002,
generated by <a href="http://www.gnu.org/software/texinfo/"><i>texi2html</i></a>.
</font>

</body>
</html>
