Top
Back: module
Forward: module expressions
FastBack: map
FastForward: poly
Up: module
Top: Plural Manual
Contents: Table of Contents
Index: Index
About: About this document

2.3.1 module declarations

Syntax:
module name = list_of_vector_expressions (which are interpreted as left generators of the module) ;
module name = module_expression ;

Purpose:
defines a left module.

Default:
[0]

Example:
 
ring r=0,(x,y,z),(c,dp);
matrix D[3][3];
D[1,2]=-z;
D[1,3]=y;
D[2,3]=x;
ncalgebra(1,D); 
// it is U(so_3)
vector s1 = [x2,y3,z];
vector s2 = [xy,1,0];
vector s3 = [0,x2-y2,z];
poly   f  = xyz;
module m = s1, s2-s1,f*(s3-s1);
m;
==> m[1]=[x2,y3,z]
==> m[2]=[-x2+xy,-y3+1,-z]
==> m[3]=[-x3yz-2x2y2+2x2z2+4xyz+2x2,-xy4z-3x2y3+x3yz-xy3z+6xy2z-2x2z2+8x2y-x\
   yz-5xz]
// show m in matrix format (columns generate m)
print(m);
==> x2,-x2+xy,-x3yz-2x2y2+2x2z2+4xyz+2x2,                    
==> y3,-y3+1, -xy4z-3x2y3+x3yz-xy3z+6xy2z-2x2z2+8x2y-xyz-5xz,
==> z, -z,    0                                              


Top Back: module Forward: module expressions FastBack: map FastForward: poly Up: module Top: Plural Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 2-1-99, August 2004, generated by texi2html.