Top
Back: 5.1.89 option
Forward: 5.1.91 ordstr
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.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.


Top Back: 5.1.89 option Forward: 5.1.91 ordstr 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.