source: git/Tst/Long/zeroset1.tst @ 887634

spielwiese
Last change on this file since 887634 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: 3.1 KB
Line 
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
18LIB "tst.lib";
19LIB "zeroset.lib";         
20
21tst_init();
22 
23
24
25proc TestzerosetLIB(S)
26// plug in the elements from the zero-set in the generators of the ideal
27// result should be 0,0,...,0.
28{
29     
30        setring S;
31        map F;
32
33        print(" #Points = " + string(vdim(std(id))) + "; #Solutions = " + string(size(theZeroset)));
34        print(" minpoly = " + string(minpoly));
35        print(" ideal = " + string(id));
36       
37
38        for(int i = 1; i <= size(theZeroset); i++) {
39                F = theZeroset[i];
40                print(string(theZeroset[i]) + " --> " + string(F(id)));
41        }
42}
43
44// example 1
45
46ring R = 0,(x,y,z), lp;
47ideal I = x2-1,y3-1,z-2x;
48
49def S = zeroSet(I);TestzerosetLIB(S);
50setring S;
51minpoly;
52id;
53theZeroset;
54
55kill R;
56kill S;
57//tst_status();
58 
59// example 2
60
61ring R = 0,(x,y,z), lp;
62ideal I = x3-1,3y-x,z4-1;
63
64def S = zeroSet(I);TestzerosetLIB(S);
65setring S;
66minpoly;
67id;
68theZeroset;
69       
70kill R;
71kill S;
72//tst_status();
73
74// example 3
75
76ring R = 0, (x(1..5)), lp;
77ideal I = x(1)^2+1,x(2)^4-1,x(3)-x(4),x(4)^2+1,x(5)-x(4);
78
79def S = zeroSet(I);TestzerosetLIB(S);
80setring S;
81minpoly;
82id;
83theZeroset;
84
85kill R;
86kill S;
87//tst_status();
88
89// example 4
90
91ring R = (0,a),(x,y), lp;
92minpoly = a2+1;
93ideal I = x2-a,y-2x;
94
95def S = zeroSet(I);TestzerosetLIB(S);
96setring S;
97minpoly;
98id;
99theZeroset;
100
101kill R;
102kill S;
103//tst_status();
104         
105// example 5
106
107ring R = (0,a),(x,y,z), lp;
108minpoly = a2+a+1;
109ideal I = x3-1,a*y^2-x,z^2-a*y;
110
111def S = zeroSet(I);TestzerosetLIB(S);
112setring S;
113minpoly;
114id;
115theZeroset;
116
117kill R;
118kill S;
119//tst_status();
120
121// example 6
122
123ring R = (0,a),(x,y,z), lp;
124minpoly = a2+1;
125ideal I = x2-2,a*y^2-2*x,z^2 - a; // 2
126
127def S = zeroSet(I);TestzerosetLIB(S);
128setring S;
129minpoly;
130id;
131theZeroset;
132
133kill R;
134kill S;
135//tst_status();
136         
137// example 7
138
139ring R = (0,a),(x(1..5)), lp;
140minpoly = a2+a+1;
141ideal I = x(1)^2 - 2,x(2) -a*x(1), x(3)^2 + 1, x(4)^2 + a, a*x(5) - x(1);
142
143def S = zeroSet(I);TestzerosetLIB(S);
144setring S;
145minpoly;
146id;
147theZeroset;
148
149kill S;
150
151setring R;
152def S = zeroSet(I, 1);TestzerosetLIB(S);
153setring S;
154minpoly;
155id;
156theZeroset;
157
158kill R;
159kill S;
160
161//tst_status();
162
163// example 8
164
165ring R = (0,a),(s(1..4)), lp;
166minpoly = a2+1;
167ideal 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);
168
169def S = zeroSet(I);TestzerosetLIB(S);
170setring S;
171minpoly;
172id;
173theZeroset;
174
175kill S;
176
177setring R;
178def S = zeroSet(I, 1);TestzerosetLIB(S);
179setring S;
180minpoly;
181id;
182theZeroset;
183
184kill S;
185
186tst_status(1); $
Note: See TracBrowser for help on using the repository browser.