source: git/Tst/Manual/ECoef.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: 1.1 KB
Line 
1LIB "tst.lib"; tst_init();
2LIB "resbinomial.lib";
3ring r = 0,(x(1),y(2),x(3),y(4),x(5..7)),dp;
4list flag=identifyvar();
5ideal P=x(1)^2*x(3)^5-x(5)^7*y(4),x(6)^3*y(2)^5-x(7)^5,x(5)^3*x(6)-y(4)^3*x(1)^5;
6list L=data(P,3,7);
7list L2=ECoef(L[1],L[2],3,1,3,7,flag);
8L2[1];  // exponents of the E-Coefficient ideal respect to x(1)
9L2[2];  // its coefficients
10L2[3];  // classify the type of ideal obtained
11ring r = 0,(x(1),y(2),x(3),y(4)),dp;
12list flag=identifyvar();
13ideal J=x(1)^3*(1-2*y(2)*y(4)^2);  // Bold regular case
14list L=data(J,1,4);
15list L2=ECoef(L[1],L[2],1,1,3,4,flag);
16L2;
17ring r = 0,(x(1),y(2),x(3),y(4),x(5..7)),dp;
18list flag=identifyvar();
19ideal J=x(1)^3-x(3)^2*y(4)^2,x(1)*x(7)*y(2)-x(6)^3*x(5)*y(4)^3,x(5)^3-x(5)^3*y(2)^2;
20list L=data(J,3,7);
21list L2=ECoef(L[1],L[2],3,1,2,7,flag);
22L2;
23ring r = 3,(x(1),y(2),x(3),y(4),x(5..7)),dp;
24list flag=identifyvar();
25ideal J=x(1)^3-x(3)^2*y(4)^2,x(1)*x(7)*y(2)-x(6)^3*x(5)*y(4)^3,x(5)^3-x(5)^3*y(2)^2;
26list L=data(J,3,7);
27list L2=ECoef(L[1],L[2],3,1,2,7,flag);
28L2; // THE COMPUTATIONS ARE NOT CORRECT IN CHARACTERISTIC p>0
29// because numbers are treated as 0 in assignments
30tst_status(1);$
Note: See TracBrowser for help on using the repository browser.