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