|
5.1.16 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,
otherwise weight 1 is used for lex orderings and block ordering,
the default weights of the base ring are used for orderings consisting of one
block.
Example:
See
jet;
ord;
poly;
vector.
|