source: git/Tst/Manual/quotient_BR_PLURAL_BR.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: 752 bytes
Line 
1LIB "tst.lib"; tst_init();
2//------ a very simple example ------------
3ring r=(0,q),(x,y),Dp;
4def R=nc_algebra(q,0); // this algebra is a quantum plane
5setring R;
6option(returnSB);
7poly f1  = x^3+2*x*y^2+2*x^2*y;
8poly f2  = y;
9poly f3 = x^2;
10poly f4 = x+y;
11ideal i = f1,f2;
12ideal I = twostd(i);
13ideal j = f3,f4;
14ideal J = twostd(j);
15quotient(I,J);
16module M = x*freemodule(3), y*freemodule(2);
17quotient(M, ideal(x,y));
18kill r,R;
19//------- a bit more involved example
20LIB "ncalg.lib";
21def Usl2 = makeUsl2();
22// this algebra is U(sl_2)
23setring Usl2;
24ideal i = e3,f3,h3-4*h;
25ideal I = std(i);
26poly  C = 4*e*f+h^2-2*h;
27ideal H = twostd(C-8);
28option(returnSB);
29ideal Q = quotient(I,H);
30// print a compact presentation of Q:
31print(matrix(Q));
32tst_status(1);$
Note: See TracBrowser for help on using the repository browser.