source: git/Tst/Manual/toric_std.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: 574 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "toric.lib";
3ring r=0,(x,y,z),wp(3,2,1);
4// call with toric ideal (of the matrix A=(1,1,1))
5ideal I=x-y,x-z;
6ideal J=toric_std(I);
7J;
8// call with the same ideal, but badly chosen generators:
9// 1) not only binomials
10I=x-y,2x-y-z;
11J=toric_std(I);
12// 2) binomials whose monomials are not relatively prime
13I=x-y,xy-yz,y-z;
14J=toric_std(I);
15J;
16// call with a non-toric ideal that seems to be toric
17I=x-yz,xy-z;
18J=toric_std(I);
19J;
20// comparison with real standard basis and saturation
21ideal H=std(I);
22H;
23LIB "elim.lib";
24sat(H,xyz);
25tst_status(1);$
Note: See TracBrowser for help on using the repository browser.