source: git/Tst/Manual/moduloSlim.tst @ 6fb723

spielwiese
Last change on this file since 6fb723 was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 660 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "nctools.lib";
3LIB "ncalg.lib";
4ring r; // first classical example for modulo
5ideal h1=x,y,z;    ideal h2=x;
6module m=moduloSlim(h1,h2);
7print(m);
8// now, a noncommutative example
9def A = makeUsl2(); setring A; // this algebra is U(sl_2)
10ideal H2 = e2,f2,h2-1; H2 = twostd(H2);
11print(matrix(H2)); // print H2 in a compact form
12ideal H1 = std(e);
13ideal T = moduloSlim(H1,H2);
14T = std( NF(std(H2+T),H2) );
15T;
16// now, a matrix example:
17ring r2 = 0,(x,d), (dp);
18def R = nc_algebra(1,1); setring R;
19matrix M[2][2] = d, 0, 0, d*(x*d);
20matrix P[2][1] = (8x+7)*d+9x, (x2+1)*d + 5*x;
21module X = moduloSlim(P,M);
22print(X);
23tst_status(1);$
Note: See TracBrowser for help on using the repository browser.