source: git/Tst/Manual/ivDHilbert.tst @ 951db29

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: 659 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "fpadim.lib";
3ring r = 0,(x,y),dp;
4def R = makeLetterplaceRing(5); // constructs a Letterplace ring
5R;
6setring R; // sets basering to Letterplace ring
7//some intmats, which contain monomials in intvec representation as rows
8intmat I1 [2][2] = 1,1,2,2; intmat I2 [1][3]  = 1,2,1;
9intmat J1 [1][2] =  1,1; intmat J2 [2][3] = 2,1,2,1,2,1;
10print(I1);
11print(I2);
12print(J1);
13print(J2);
14list G = I1,I2; // ideal, which is already a Groebner basis
15list I = J1,J2; // ideal, which is already a Groebner basis
16//the procedure without a degree bound
17ivDHilbert(G,2);
18// the procedure with degree bound 5
19ivDHilbert(I,2,5);
20tst_status(1);$
Note: See TracBrowser for help on using the repository browser.