source: git/Tst/Manual/multiDegGroebner.tst @ 894057

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