|
5.1.92 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.
|