Top
Back: 5.1.37 fprintf
Forward: 5.1.39 gcd
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.38 freemodule

Syntax:

freemodule ( int_expression )

Type:

module

Purpose:

creates the free module of rank n generated by gen(1), …, gen(n).

Example:
 
  ring r=32003,(x,y),(c,dp);
  freemodule(3);
→ _[1]=[1]
→ _[2]=[0,1]
→ _[3]=[0,0,1]
  matrix m=freemodule(3); // generates the 3x3 unit matrix
  print(m);
→ 1,0,0,
→ 0,1,0,
→ 0,0,1 

See gen; module.


Top Back: 5.1.37 fprintf Forward: 5.1.39 gcd 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.