Home Online Manual
Top
Back: lst2str
Forward: vct2str
FastBack: fpadim_lib
FastForward: involut_lib
Up: freegb_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.7.8.0. mod2str
Procedure from library freegb.lib (see freegb_lib).

Usage:
mod2str(M[,n]); M a module, n an optional integer

Return:
string

Purpose:
convert a module into a polynomial in free algebra

Note:
if an optional integer is not 0, stars signs are used in multiplication

Example:
 
LIB "freegb.lib";
ring r = 0,(x,y,z),(dp);
module M = [1,x,y,x,y],[-2,y,x,y,x],[6,x,y,y,x,y];
mod2str(M);
==> xyxy-2yxyx+6xyyxy
mod2str(M,1);
==> x*y*x*y-2*y*x*y*x+6*x*y*y*x*y