Home Online Manual
Top
Back: zero
Forward: makeMatrix
FastBack:
FastForward:
Up: modules_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.23.3 freeModule

Procedure from library modules.lib (see modules_lib).

Usage:
freeModule(r,n,l); r ring, n integer, l list

Return:
a free Module over the ring r, with rank n, and degrees l for the generators

Note:
-1 for nor graduation and 0 to set every degree to 0

Example:
 
LIB "modules.lib";
ring r;
int n=3;
list l=1,2,3;
freeModule(r,n,l);
==>  3
==> r
==> free Module
==> Degrees of the generators: {1} {2} {3} 
==>