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