Top
Back: 5.1.116 size
Forward: 5.1.118 sprintf
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.117 sortvec

Syntax:

sortvec ( ideal_expression )
sortvec ( module_expression )

Type:

intvec

Purpose:

computes the permutation v which orders the ideal, resp. module, I by its initial terms, starting with the smallest, that is, I(v[i]) < I(v[i+1]) for all i.

Example:
 
  ring r=0,(x,y,z),dp;
  ideal I=y,z,x,x3,xz;
  sortvec(I);
→ 2,1,3,5,4

See general_lib.


Top Back: 5.1.116 size Forward: 5.1.118 sprintf 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.