5.1.90 ord
----------
Syntax:
ord ( poly_expression )

ord ( vector_expression )
Type:
int
Purpose:
returns the (weighted) degree of
the initial term of a polynomial or a vector;
the weights are the weights used for the first block of the ring ordering.
Note:
ord(0) is -1.
Example:
  ring r=7,(x,y),wp(2,3);
  ord(0);
==> -1
  poly f=x2+y3;  // weight on y is 3
  ord(f);
==> 9
  ring R=7,(x,y),ws(2,3);
  poly f=x2+y3;
  ord(f);
==> 4
  vector v=[x2,y];
  ord(v);
==> 3
See
deg;
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>
