1 | // Test File for 'zeroset.lib" |
---|
2 | // |
---|
3 | // Implementation by : Thomas Bayer |
---|
4 | // Curretn Adress: |
---|
5 | // Institut fuer Informatik, Technische Universitaet Muenchen |
---|
6 | // www: http://wwwmayr.informatik.tu-muenchen.de/personen/bayert/ |
---|
7 | // email : bayert@in.tum.de |
---|
8 | // |
---|
9 | // Last change 10.12.2000 |
---|
10 | // |
---|
11 | // written in the frame of the diploma thesis (advisor: Prof. Gert-Martin Greuel) |
---|
12 | // "Computations of moduli spaces of semiquasihomogenous singularities and an |
---|
13 | // implementation in Singular" |
---|
14 | // Arbeitsgruppe Algebraische Geometrie, Fachbereich Mathematik, |
---|
15 | // Universitaet Kaiserslautern |
---|
16 | /////////////////////////////////////////////////////////////////////////////// |
---|
17 | |
---|
18 | LIB "tst.lib"; |
---|
19 | LIB "zeroset.lib"; |
---|
20 | |
---|
21 | tst_init(); |
---|
22 | tst_ignore("CVS ID $Id: zeroset.tst,v 1.1 2000-12-11 16:07:30 Singular Exp $"); |
---|
23 | |
---|
24 | |
---|
25 | // example 1 |
---|
26 | |
---|
27 | ring R = 0,(x,y,z), lp; |
---|
28 | ideal I = x2-1,y3-1,z-2x; |
---|
29 | |
---|
30 | def S = ZeroSet(I); |
---|
31 | setring S; |
---|
32 | minpoly; |
---|
33 | id; |
---|
34 | zeroset; |
---|
35 | |
---|
36 | kill R; |
---|
37 | kill S; |
---|
38 | //tst_status(); |
---|
39 | |
---|
40 | // example 2 |
---|
41 | |
---|
42 | ring R = 0,(x,y,z), lp; |
---|
43 | ideal I = x3-1,3y-x,z4-1; |
---|
44 | |
---|
45 | def S = ZeroSet(I); |
---|
46 | setring S; |
---|
47 | minpoly; |
---|
48 | id; |
---|
49 | zeroset; |
---|
50 | |
---|
51 | kill R; |
---|
52 | kill S; |
---|
53 | //tst_status(); |
---|
54 | |
---|
55 | // example 3 |
---|
56 | |
---|
57 | ring R = 0, (x(1..5)), lp; |
---|
58 | ideal I = x(1)^2+1,x(2)^4-1,x(3)-x(4),x(4)^2+1,x(5)-x(4); |
---|
59 | |
---|
60 | def S = ZeroSet(I); |
---|
61 | setring S; |
---|
62 | minpoly; |
---|
63 | id; |
---|
64 | zeroset; |
---|
65 | |
---|
66 | kill R; |
---|
67 | kill S; |
---|
68 | //tst_status(); |
---|
69 | |
---|
70 | // example 4 |
---|
71 | |
---|
72 | ring R = (0,a),(x,y), lp; |
---|
73 | minpoly = a2+1; |
---|
74 | ideal I = x2-a,y-2x; |
---|
75 | |
---|
76 | def S = ZeroSet(I); |
---|
77 | setring S; |
---|
78 | minpoly; |
---|
79 | id; |
---|
80 | zeroset; |
---|
81 | |
---|
82 | kill R; |
---|
83 | kill S; |
---|
84 | //tst_status(); |
---|
85 | |
---|
86 | // example 5 |
---|
87 | |
---|
88 | ring R = (0,a),(x,y,z), lp; |
---|
89 | minpoly = a2+a+1; |
---|
90 | ideal I = x3-1,a*y^2-x,z^2-a*y; |
---|
91 | |
---|
92 | def S = ZeroSet(I); |
---|
93 | setring S; |
---|
94 | minpoly; |
---|
95 | id; |
---|
96 | zeroset; |
---|
97 | |
---|
98 | kill R; |
---|
99 | kill S; |
---|
100 | //tst_status(); |
---|
101 | |
---|
102 | // example 6 |
---|
103 | |
---|
104 | ring R = (0,a),(x,y,z), lp; |
---|
105 | minpoly = a2+1; |
---|
106 | ideal I = x2-2,a*y^2-2*x,z^2 - a; // 2 |
---|
107 | |
---|
108 | def S = ZeroSet(I); |
---|
109 | setring S; |
---|
110 | minpoly; |
---|
111 | id; |
---|
112 | zeroset; |
---|
113 | |
---|
114 | kill R; |
---|
115 | kill S; |
---|
116 | //tst_status(); |
---|
117 | |
---|
118 | // example 7 |
---|
119 | |
---|
120 | ring R = (0,a),(x(1..5)), lp; |
---|
121 | minpoly = a2+a+1; |
---|
122 | ideal I = x(1)^2 - 2,x(2) -a*x(1), x(3)^2 + 1, x(4)^2 + a, a*x(5) - x(1); |
---|
123 | |
---|
124 | def S = ZeroSet(I); |
---|
125 | setring S; |
---|
126 | minpoly; |
---|
127 | id; |
---|
128 | zeroset; |
---|
129 | |
---|
130 | kill S; |
---|
131 | |
---|
132 | setring R; |
---|
133 | def S = ZeroSet(I, 1); |
---|
134 | setring S; |
---|
135 | minpoly; |
---|
136 | id; |
---|
137 | zeroset; |
---|
138 | |
---|
139 | kill R; |
---|
140 | kill S; |
---|
141 | |
---|
142 | //tst_status(); |
---|
143 | |
---|
144 | // example 8 |
---|
145 | |
---|
146 | ring R = (0,a),(s(1..4)), lp; |
---|
147 | minpoly = a2+1; |
---|
148 | ideal I = s(3)*s(4),s(2)*s(4),s(1)*s(3),s(1)*s(2),s(3)^8+s(4)^8-1,s(2)^8+s(4)^8-1,s(1)^8-s(4)^8,s(4)^9-s(4),s(1)*s(4)^8-s(1); |
---|
149 | |
---|
150 | def S = ZeroSet(I); |
---|
151 | setring S; |
---|
152 | minpoly; |
---|
153 | id; |
---|
154 | zeroset; |
---|
155 | |
---|
156 | kill S; |
---|
157 | |
---|
158 | setring R; |
---|
159 | def S = ZeroSet(I, 1); |
---|
160 | setring S; |
---|
161 | minpoly; |
---|
162 | id; |
---|
163 | zeroset; |
---|
164 | |
---|
165 | kill S; |
---|
166 | |
---|
167 | tst_status(1);$ |
---|