fieker-DuValspielwiese
Last change
on this file since 894057 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:
971 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "multigrading.lib"; |
---|
3 | ring r = 0,(x,y,z,w),dp; |
---|
4 | intmat MM[2][4]= |
---|
5 | 1,1,1,1, |
---|
6 | 0,1,3,4; |
---|
7 | setBaseMultigrading(MM); |
---|
8 | module M = ideal( xw-yz, x2z-y3, xz2-y2w, yw2-z3); |
---|
9 | intmat v[2][nrows(M)]= |
---|
10 | 1, |
---|
11 | 0; |
---|
12 | M = setModuleGrading(M, v); |
---|
13 | ///////////////////////////////////////////////////////////////////////////// |
---|
14 | // GB: |
---|
15 | M = multiDegGroebner(M); M; |
---|
16 | "Module Units Multigrading: "; print( getModuleGrading(M) ); |
---|
17 | "Multidegrees: "; print(multiDeg(M)); |
---|
18 | isHomogeneous(M); |
---|
19 | ///////////////////////////////////////////////////////////////////////////// |
---|
20 | // Let's compute Syzygy! |
---|
21 | def S = multiDegSyzygy(M); S; |
---|
22 | "Module Units Multigrading: "; print( getModuleGrading(S) ); |
---|
23 | "Multidegrees: "; print(multiDeg(S)); |
---|
24 | isHomogeneous(S); |
---|
25 | ///////////////////////////////////////////////////////////////////////////// |
---|
26 | // GB: |
---|
27 | S = multiDegGroebner(S); S; |
---|
28 | "Module Units Multigrading: "; print( getModuleGrading(S) ); |
---|
29 | "Multidegrees: "; print(multiDeg(S)); |
---|
30 | isHomogeneous(S); |
---|
31 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.