source: git/Tst/Manual/module_containment.tst @ 6fb723

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: 440 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "algebra.lib";
3int p = printlevel; printlevel = 1;
4ring R=0,(x,y,z),dp;
5ideal P = x2+y2,z2,x4+y4;           //algebra generators
6ideal M = 1,x2z-1y2z,xyz,x3y-1xy3;  //module generators
7poly p1=
8x10z3-x8y2z3+2x6y4z3-2x4y6z3+x2y8z3-y10z3+x6z4+3x4y2z4+3x2y4z4+y6z4;
9module_containment(p1,P,M);
10poly p2=z;
11list l = module_containment(p2,P,M,1);
12l[1];
13def S = l[2]; setring S; check;
14printlevel=p;
15tst_status(1);$
Note: See TracBrowser for help on using the repository browser.