spielwiese
Last change
on this file since 951db29 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:
1.0 KB
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | // ----- 1. setting up the algebra |
---|
3 | ring R = 0,(e,f,h),dp; |
---|
4 | matrix D[3][3]; |
---|
5 | D[1,2]=-h; D[1,3]=2*e; D[2,3]=-2*f; |
---|
6 | def A=nc_algebra(1,D); setring A; |
---|
7 | // ----- equivalently, you may use the following: |
---|
8 | // LIB "ncalg.lib"; |
---|
9 | // def A = makeUsl2(); |
---|
10 | // setring A; |
---|
11 | // ----- 2. defining the set S |
---|
12 | ideal S = e^3, f^3, h^3 - 4*h; |
---|
13 | option(redSB); |
---|
14 | option(redTail); |
---|
15 | option(prot); // let us activate the protocol |
---|
16 | ideal L = std(S); |
---|
17 | L; |
---|
18 | vdim(L); // the vector space dimension of the module A/L |
---|
19 | option(noprot); // turn off the protocol |
---|
20 | ideal T = twostd(S); |
---|
21 | T; |
---|
22 | vdim(T); // the vector space dimension of the module A/T |
---|
23 | print(matrix(reduce(L,T))); // reduce L with respect to T |
---|
24 | // as we see, L is included in the left ideal generated by T |
---|
25 | print(matrix(reduce(T,L))); // reduce T with respect to L |
---|
26 | // the non-zero elements belong to T only |
---|
27 | ideal LT = twostd(L); // the two-sided Groebner basis of L |
---|
28 | // LT and T coincide as left ideals: |
---|
29 | size(reduce(LT,T)); |
---|
30 | size(reduce(T,LT)); |
---|
31 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.