Top
Back: 5.1.39 gcd
Forward: 5.1.41 getdump
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.40 gen

Syntax:

gen ( int_expression )

Type:

vector

Purpose:

returns the i-th free generator of a free module.

Example:
 
  ring r=32003,(x,y,z),(c,dp);
  gen(3);
→ [0,0,1]
  vector v=gen(5);
  poly f=xyz;
  v=v+f*gen(4); v;
→ [0,0,0,xyz,1]
  ring rr=32003,(x,y,z),dp;
  fetch(r,v);
→ xyz*gen(4)+gen(5)

See freemodule; int; vector.


Top Back: 5.1.39 gcd Forward: 5.1.41 getdump 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.