1 | //sing_l.tst |
---|
2 | //long tests for sing.lib |
---|
3 | LIB "tst.lib"; |
---|
4 | tst_init(); |
---|
5 | LIB "sing.lib"; |
---|
6 | ring r = 0,(x,y,z),ds; |
---|
7 | ideal i = xy,xz,yz; |
---|
8 | matrix T = deform(i); |
---|
9 | print(T); |
---|
10 | print(deform(x3+y5+z2)); |
---|
11 | //pause; |
---|
12 | i = x5+y6+z6,x2+2y2+3z2; |
---|
13 | dim_slocus(i); |
---|
14 | //pause; |
---|
15 | i = yx3+y,yz3+y3z; |
---|
16 | poly f = x; |
---|
17 | is_active(f,i); |
---|
18 | qring q = std(x4y5); |
---|
19 | poly f = x; |
---|
20 | module m = [yx3+x,yx3+y3x]; |
---|
21 | is_active(f,m); |
---|
22 | setring r; kill q; |
---|
23 | //pause; |
---|
24 | printlevel = 1; |
---|
25 | i = x4+y5+z6,xyz,yx2+xz2+zy7; |
---|
26 | is_ci(i); |
---|
27 | i = xy,yz; |
---|
28 | is_ci(i); |
---|
29 | //pause; |
---|
30 | i = x2y,x4+y5+z6,yx2+xz2+zy7; |
---|
31 | is_is(i); |
---|
32 | f = xy+yz; |
---|
33 | is_is(f); |
---|
34 | //pause; |
---|
35 | ideal i1 = x8,y8,z; |
---|
36 | ideal j1 = (x+y)^4,z; |
---|
37 | i = intersect(i1,j1); |
---|
38 | f = xy; |
---|
39 | is_reg(f,i); |
---|
40 | //pause; |
---|
41 | i = x8,y8,(x+y)^4; |
---|
42 | is_regs(i); |
---|
43 | module m = [x,0,y]; |
---|
44 | i = x8,(x+z)^4; |
---|
45 | is_regs(i,m); |
---|
46 | //pause; |
---|
47 | ideal j = x5+y6+z6,x2+2y2+3z2,xyz+yx; |
---|
48 | milnor(j); |
---|
49 | f = x7+y7+(x-y)^2*x2y2+z2; |
---|
50 | milnor(f); |
---|
51 | //pause; |
---|
52 | i = x5+y6+z6,x2+2y2+3z2; |
---|
53 | slocus(i); |
---|
54 | //pause; |
---|
55 | f=x3+y3+z4; |
---|
56 | intvec w=4,4,3; |
---|
57 | qhspectrum(f,w); |
---|
58 | //pause; |
---|
59 | kill r; |
---|
60 | ring r=0,(x,y,z),(c,ds); |
---|
61 | ideal j=x2+y2+z2,x2+2y2+3z2; |
---|
62 | tjurina(j); |
---|
63 | //pause; |
---|
64 | Tjurina(j); |
---|
65 | //pause; |
---|
66 | Tjurina(j,1); |
---|
67 | ideal i = xy,xz,yz; |
---|
68 | module T = T1(i); |
---|
69 | vdim(T); "// Tjurina number = dim_K(T1), should be 3"; |
---|
70 | //pause; |
---|
71 | list L=T1(i,""); |
---|
72 | print(transpose(L[3])*L[2]); "// should be 0 (mod i)"; |
---|
73 | L; |
---|
74 | //pause; |
---|
75 | kill r; |
---|
76 | ring r = 0,(x,y),(c,dp); |
---|
77 | ideal j = x6-y4,x6y6,x2y4-x5y2; |
---|
78 | module T = T2(j); |
---|
79 | vdim(T); |
---|
80 | hilb(T);""; |
---|
81 | //pause; |
---|
82 | T2(j,1); |
---|
83 | ring r1 = 0,(x,y,z),dp; |
---|
84 | ideal id = xy,xz,yz; |
---|
85 | list L = T2(id,""); |
---|
86 | vdim(L[1]); |
---|
87 | //pause; |
---|
88 | L; |
---|
89 | ring r2 = 0,(x,y,z,u,v),(c,ds); |
---|
90 | ideal i = xz-y2,yz2-xu,xv-yzu,yu-z3,z2u-yv,zv-u2; |
---|
91 | list L = T12(i,1); |
---|
92 | //pause; |
---|
93 | L; |
---|
94 | kill r1,r2; |
---|
95 | // |
---|
96 | ring r1 = 0,(x,y,z,u),dp; |
---|
97 | ideal i6 = z2-xz,zu-xu,u2-yu,yz-xu; |
---|
98 | list L=T12(i6,1); |
---|
99 | L; |
---|
100 | kill r1; |
---|
101 | // |
---|
102 | ring r7 = 0,(x,y,z,u,v),dp; |
---|
103 | ideal I1 = xy,xz,xu,xv,yz,yu,yv,zu,zv,uv; " //t1=15, t2=20"; |
---|
104 | list L=T12(I1,1); |
---|
105 | L; |
---|
106 | kill r7; |
---|
107 | // |
---|
108 | ring r8 = 0,(w(1..9)),dp; |
---|
109 | ideal I3 = w(8)^2-w(6)*w(9), |
---|
110 | w(7)*w(8)-w(5)*w(9), |
---|
111 | w(5)*w(8)-w(3)*w(9), |
---|
112 | w(4)*w(8)-w(2)*w(9), |
---|
113 | w(7)^2-w(4)*w(9), |
---|
114 | w(6)*w(7)-w(3)*w(9), |
---|
115 | w(5)*w(7)-w(2)*w(9), |
---|
116 | w(4)*w(7)-w(1)*w(9), |
---|
117 | w(3)*w(7)-w(2)*w(8), |
---|
118 | w(2)*w(7)-w(1)*w(8), |
---|
119 | w(5)*w(6)-w(3)*w(8), |
---|
120 | w(4)*w(6)-w(2)*w(8), |
---|
121 | w(5)^2-w(3)*w(7), |
---|
122 | w(4)*w(5)-w(2)*w(7), |
---|
123 | w(3)*w(5)-w(2)*w(6), |
---|
124 | w(2)*w(5)-w(1)*w(6), |
---|
125 | w(4)^2-w(1)*w(7), |
---|
126 | w(3)*w(4)-w(2)*w(5), |
---|
127 | w(2)*w(4)-w(1)*w(5), |
---|
128 | w(2)^2-w(1)*w(3), |
---|
129 | w(2)*w(6)*w(8)-w(3)^2*w(9), |
---|
130 | w(1)*w(6)*w(8)-w(2)*w(3)*w(9), |
---|
131 | w(2)*w(6)^2-w(3)^2*w(8), |
---|
132 | w(1)*w(6)^2-w(2)*w(3)*w(8); |
---|
133 | T12(I3); |
---|
134 | tst_status(1);$ |
---|