source: git/Tst/Short/slimgb_s.tst @ a866f1

spielwiese
Last change on this file since a866f1 was ef52d6, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Update testsuite wrt current master (320c4f5e64cad778b4ada9556a9b0a6c71cab83a) NOTE: some wrong/bad tests were removed... TODO: add the reset of these updates after updating LIB/
  • Property mode set to 100644
File size: 1.5 KB
Line 
1//
2//
3
4
5LIB "tst.lib";
6
7LIB "poly.lib";
8
9tst_init();
10
11proc char_out(ideal i){
12  return(sort(simplify(lead(i),1))[1]);
13}
14ring r=0,x(1..5),dp;
15ideal i=cyclic(5);
16char_out(slimgb(i));
17kill r;
18
19ring r=7,x(1..5),dp;
20ideal i=cyclic(5);
21char_out(slimgb(i));
22kill r;
23
24ring r = 32003, (x,y,z,t,u,v,w,a,b,c,d,e,f,g,h,i,j,k), dp;
25ideal i0=
26ag ,
27df+bg+ah+w ,
28ci ,
29wf ,
30cg+ai+di+ei+cj+t+c ,
31cf+ag+dg+eg+ch+bi+aj+dj+ej+y+u+v+2w+a+d+e ,
32af+df+ef+wg+bg+ah+dh+eh+wj+bj+x+z+w+b-1 ,
33wf+bf+wh+bh ,
342wf+bf+wh ,
352af+df+ef+2wg+bg+ah+wj+x+w ,
36cf+2ag+dg+eg+wi+aj+y+a ,
37cg+ai ,
38af+wg ,
39bf+wh+2bh ,
40df+bg+ah+2dh+eh+bj+z+w+2b ,
41dg+ch+bi+dj+u+a+2d+e ,
42di+c ,
43bf+wh ,
44dg+a;
45ideal i=homog(i0,k);
46i = slimgb(i);
47char_out(i);
48kill r;
49
50ring @r=(32003,u1, u2, u3, u4),(x1, x2, x3, x4, x5, x6, x7),dp;
51ideal @i=
52-x4*u3+x5*u2,
53x1*u3+2*x2*u1-2*x2*u2-2*x3*u3-u1*u4+u2*u4,
54-2*x1*x5+4*x4*x6+4*x5*x7+x1*u3-2*x4*u1-2*x4*u4-2*x6*u2-2*x7*u3+u1*u2+u2*u4,
55-x1*x5+x1*x7-x4*u1+x4*u2-x4*u4+x5*u3+x6*u1-x6*u2+x6*u4-x7*u3,
56-x1*x4+x1*u1-x5*u1+x5*u4,
57-2*x1*x3+x1*u3-2*x2*u4+u1*u4+u2*u4,
58x1^2*u3+x1*u1*u2-x1*u2^2-x1*u3^2-u1*u3*u4+u3*u4^2;
59@i=slimgb(@i);
60char_out(@i);
61kill @r;
62
63ring r=0,(x,y,z),lp;
64ideal i=x3-y,xy-z,x2-z6,yz-z7,xz-y;
65char_out(slimgb(i));
66kill r;
67
68
69//twomat3
70ring @r=32003,(a, b, c, d, e, f, g, h, i, A, B, C, D, E, F, G, H, I),lp;
71ideal @i=
72d*C-c*D-f*E+e*F-i*F+f*I,
73-d*B-g*C+b*D+c*G,
74d*B-b*D-h*F+f*H,
75g*A+h*D-a*G+i*G-d*H-g*I,
76d*A-a*D+e*D-d*E-g*F+f*G,
77-c*A-f*B+a*C-i*C+b*F+c*I,
78-b*A+a*B-e*B-h*C+b*E+c*H,
79-g*h*C*I+g*B+h*E+h*F-b*G-c*G-e*H-f*H+i*H;
80char_out(slimgb(@i));
81kill @r;
82
83tst_status(1);$
Note: See TracBrowser for help on using the repository browser.