1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | |
---|
4 | LIB "absfact.lib"; |
---|
5 | |
---|
6 | ring R = (0), (x,y), lp; |
---|
7 | short= 0; |
---|
8 | poly p = (-7*x^2 + 2*x*y^2 + 6*x + y^4 + 14*y^2 + 47)*(5x2+y2)^3*(x-y)^4; |
---|
9 | def S = absFactorize(p) ; |
---|
10 | setring(S); |
---|
11 | short= 0; |
---|
12 | absolute_factors; |
---|
13 | setring R; |
---|
14 | def T= absFactorizeBCG (p); |
---|
15 | setring T; |
---|
16 | short= 0; |
---|
17 | absolute_factors; |
---|
18 | |
---|
19 | kill R; |
---|
20 | ring R = (0), (x,y), lp; |
---|
21 | short= 0; |
---|
22 | poly p = (5x2+y2); |
---|
23 | def S = absFactorize(p) ; |
---|
24 | setring(S); |
---|
25 | short= 0; |
---|
26 | absolute_factors; |
---|
27 | setring R; |
---|
28 | def T= absFactorizeBCG (p); |
---|
29 | setring T; |
---|
30 | short= 0; |
---|
31 | absolute_factors; |
---|
32 | |
---|
33 | kill R; |
---|
34 | ring R = (0), (x,y), lp; |
---|
35 | short= 0; |
---|
36 | poly p = (5x2+y2); |
---|
37 | absFactorize(p,77) ; |
---|
38 | absFactorizeBCG (p,77); |
---|
39 | |
---|
40 | kill R; |
---|
41 | ring R = (0), (x,y), lp; |
---|
42 | short= 0; |
---|
43 | poly p = (5x4-5x2y2); |
---|
44 | def S = absFactorize(p) ; |
---|
45 | setring(S); |
---|
46 | short= 0; |
---|
47 | absolute_factors; |
---|
48 | setring R; |
---|
49 | def T= absFactorizeBCG (p); |
---|
50 | setring T; |
---|
51 | short= 0; |
---|
52 | absolute_factors; |
---|
53 | |
---|
54 | ring r=0,(x,t),dp; |
---|
55 | poly p=x^4+(t^3-2t^2-2t)*x^3-(t^5-2t^4-t^2-2t-1)*x^2 |
---|
56 | -(t^6-4t^5+t^4+6t^3+2t^2)*x+(t^6-4t^5+2t^4+4t^3+t^2); |
---|
57 | def S = absFactorize(p,"s"); |
---|
58 | setring(S); |
---|
59 | absolute_factors; |
---|
60 | setring r; |
---|
61 | def T= absFactorizeBCG(p, "s"); |
---|
62 | setring T; |
---|
63 | absolute_factors; |
---|
64 | |
---|
65 | kill r; |
---|
66 | ring r=0,(x),dp; |
---|
67 | poly p=0; |
---|
68 | def S = absFactorize(p); |
---|
69 | setring(S); |
---|
70 | absolute_factors; |
---|
71 | setring r; |
---|
72 | def T= absFactorizeBCG(p); |
---|
73 | setring T; |
---|
74 | absolute_factors; |
---|
75 | |
---|
76 | kill r; |
---|
77 | ring r=0,(x),dp; |
---|
78 | poly p=7/11; |
---|
79 | def S = absFactorize(p); |
---|
80 | setring(S); |
---|
81 | absolute_factors; |
---|
82 | setring r; |
---|
83 | def T= absFactorizeBCG(p); |
---|
84 | setring T; |
---|
85 | absolute_factors; |
---|
86 | |
---|
87 | kill r; |
---|
88 | ring r=(0,a,b),(x,y),dp; |
---|
89 | poly p=0; |
---|
90 | def S = absFactorize(p); |
---|
91 | setring(S); |
---|
92 | absolute_factors; |
---|
93 | setring r; |
---|
94 | def T= absFactorizeBCG(p); |
---|
95 | setring T; |
---|
96 | absolute_factors; |
---|
97 | |
---|
98 | kill r; |
---|
99 | ring r=(0,a,b),(x,y),dp; |
---|
100 | poly p=(a+1)/b; |
---|
101 | def S = absFactorize(p); |
---|
102 | setring(S); |
---|
103 | absolute_factors; |
---|
104 | setring r; |
---|
105 | def T= absFactorizeBCG(p); |
---|
106 | setring T; |
---|
107 | absolute_factors; |
---|
108 | |
---|
109 | kill r; |
---|
110 | ring r=(0,a,b),(x,y),dp; |
---|
111 | poly p=(a+1)/b*x; |
---|
112 | def S = absFactorize(p,"s"); |
---|
113 | setring(S); |
---|
114 | absolute_factors; |
---|
115 | setring r; |
---|
116 | def T= absFactorizeBCG(p,"s"); |
---|
117 | setring T; |
---|
118 | absolute_factors; |
---|
119 | |
---|
120 | kill r; |
---|
121 | ring r=(0,a,b),(x,y),dp; |
---|
122 | poly p=(a+1)/b*x + 1; |
---|
123 | def S = absFactorize(p,"s"); |
---|
124 | setring(S); |
---|
125 | absolute_factors; |
---|
126 | setring r; |
---|
127 | def T= absFactorizeBCG(p,"s"); |
---|
128 | setring T; |
---|
129 | absolute_factors; |
---|
130 | |
---|
131 | kill r; |
---|
132 | ring r=(0,a,b),(x,y),dp; |
---|
133 | poly p=(a+1)/b*x + y; |
---|
134 | def S = absFactorize(p,"s"); |
---|
135 | setring(S); |
---|
136 | absolute_factors; |
---|
137 | setring r; |
---|
138 | def T= absFactorizeBCG(p,"s"); |
---|
139 | setring T; |
---|
140 | absolute_factors; |
---|
141 | |
---|
142 | ring R1=0,(x,y),dp; |
---|
143 | poly f=(x2+y2)^3*(x3+y2)^5*(x4+4)^2; |
---|
144 | def S1 =absFactorize(f); |
---|
145 | setring(S1); |
---|
146 | absolute_factors; |
---|
147 | setring R1; |
---|
148 | def T= absFactorizeBCG(f); |
---|
149 | setring T; |
---|
150 | absolute_factors; |
---|
151 | |
---|
152 | ring R3 = 0, (x,y), dp; |
---|
153 | poly f3 = x2y4+y6+2x3y2+2xy4-7x4+7x2y2+14y4+6x3+6xy2+47x2+47y2; |
---|
154 | def S=absFactorize (f3); |
---|
155 | setring S; |
---|
156 | absolute_factors; |
---|
157 | setring R3; |
---|
158 | def T=absFactorizeBCG (f3); |
---|
159 | setring T; |
---|
160 | absolute_factors; |
---|
161 | |
---|
162 | ring r2=0,(x,y,z,w),dp; |
---|
163 | poly f=(x2+y2+z2)^2+w4; |
---|
164 | def S =absFactorize(f); |
---|
165 | setring(S); |
---|
166 | absolute_factors; |
---|
167 | setring r2; |
---|
168 | def T=absFactorizeBCG (f); |
---|
169 | setring T; |
---|
170 | absolute_factors; |
---|
171 | |
---|
172 | ring r1=(0,a,b),(x,y),dp; |
---|
173 | poly p=(a3-a2b+27ab3-27b4)/(a+b5)*x2+(a2+27b3)*y; |
---|
174 | def S = absFactorize(p); |
---|
175 | setring(S); |
---|
176 | absolute_factors; |
---|
177 | setring r1; |
---|
178 | def T=absFactorizeBCG (p); |
---|
179 | setring T; |
---|
180 | absolute_factors; |
---|
181 | |
---|
182 | ring r3=0,(x,y,z,w),dp; |
---|
183 | poly f=(x2+y2+z2)^4+w8; |
---|
184 | tst_status(); |
---|
185 | def S =absFactorize(f); |
---|
186 | tst_status(); |
---|
187 | setring(S); |
---|
188 | absolute_factors; |
---|
189 | setring r3; |
---|
190 | tst_status(); |
---|
191 | def T=absFactorizeBCG (f); |
---|
192 | tst_status(); |
---|
193 | setring T; |
---|
194 | absolute_factors; |
---|
195 | |
---|
196 | ring R = 0, (x,y,z), dp; |
---|
197 | poly f = y4+z2-y2*(1-x2); |
---|
198 | def S = absFactorize(f); |
---|
199 | setring S; |
---|
200 | absolute_factors; |
---|
201 | setring R; |
---|
202 | def T=absFactorizeBCG (f); |
---|
203 | setring T; |
---|
204 | absolute_factors; |
---|
205 | |
---|
206 | tst_status(1);$ |
---|