Top
Back: 5.1.13 defined
Forward: 5.1.15 degree
FastBack: 5. Functions and system variables
FastForward: 6. Tricks and pitfalls
Up: 5.1 Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

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.


Top Back: 5.1.13 defined Forward: 5.1.15 degree FastBack: 5. Functions and system variables FastForward: 6. Tricks and pitfalls Up: 5.1 Functions Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.