Top
Back: 4.5.1 intvec declarations
Forward: 4.5.3 intvec operations
FastBack: 4. Data types
FastForward: 5. Functions and system variables
Up: 4.5 intvec
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

4.5.2 intvec expressions

An intvec expression is:

  1. a range: int expression .. int expression
  2. a function returning intvec
  3. intvec operations with int (+, -, *, /, %)
  4. intvec operations (+, -)
  5. intvec operation with intmat (*)
  6. a type cast to intvec

Example:

 
  intvec v=-1,2;
  intvec w=v,v;         // concatenation
  w;
→ -1,2,-1,2
  w = -2..2,v,1;
  w;
→ -2,-1,0,1,2,-1,2,1
  intmat m[3][2] = 0,1,2,-2,3,1;
  m*v;
→ 2,-6,-1
  typeof(_);
→ intvec
  v = intvec(m);
  v;
→ 0,1,2,-2,3,1
  ring r;
  poly f = x2z + 2xy-z;
  f;
→ x2z+2xy-z
  v = leadexp(f);
  v;
→ 2,0,1

Top Back: 4.5.1 intvec declarations Forward: 4.5.3 intvec operations FastBack: 4. Data types FastForward: 5. Functions and system variables Up: 4.5 intvec 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.