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:
731 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "ncalg.lib"; |
---|
3 | def R = makeQso3(3); |
---|
4 | setring R; |
---|
5 | option(redSB); |
---|
6 | // we wish to have completely reduced bases: |
---|
7 | option(redTail); |
---|
8 | ideal tst; |
---|
9 | ideal J = x3+x,x*y*z; |
---|
10 | print(syz(J)); |
---|
11 | ideal K = x+y+z,y+z,z; |
---|
12 | module S = syz(K); |
---|
13 | print(S); |
---|
14 | tst = ideal(transpose(S)*transpose(K)); |
---|
15 | // check the property of a syzygy module (tst==0): |
---|
16 | size(tst); |
---|
17 | // now compute the Groebner basis of K ... |
---|
18 | K = std(K); |
---|
19 | // ... print a matrix presentation of K ... |
---|
20 | print(matrix(K)); |
---|
21 | S = syz(K); // ... and its syzygy module |
---|
22 | print(S); |
---|
23 | tst = ideal(transpose(S)*transpose(K)); |
---|
24 | // check the property of a syzygy module (tst==0): |
---|
25 | size(tst); |
---|
26 | // but the "commutative" syzygy property does not hold |
---|
27 | size(ideal(matrix(K)*matrix(S))); |
---|
28 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.