1 | LIB "tst.lib"; |
---|
2 | |
---|
3 | tst_init(); |
---|
4 | |
---|
5 | ring r=0,(x1,x2,x3,x4,x5,y),lp; |
---|
6 | poly f1=((y+x1*x3+x2+x1)*(y-2*x2^2+x3^2+1)*(y^2+x1*x2+x3)); |
---|
7 | ideal I=(x1^2-x2*x1+x3*x1-x1-x2,x1^2-x3*x1+x1-x2^2-x3*x2-x2+x3^2,-1+x1^2+x3*x1+x1-x2^2-x2+x3^2-x3); |
---|
8 | ideal J=I,f1; |
---|
9 | char_series (J); |
---|
10 | |
---|
11 | kill r; |
---|
12 | |
---|
13 | ring r=0,(x1,x2,x3,x4,x5,y),lp; |
---|
14 | poly f4= ((y^2+(x1-x2)*y+x2)*(y+x2)*(y-x4*x3)); |
---|
15 | ideal I= x1^2+1, x2^2+x1, x3^2+x2, x4^2+x3; |
---|
16 | ideal J= I,f4; |
---|
17 | char_series (J); |
---|
18 | |
---|
19 | kill r; |
---|
20 | |
---|
21 | ring r=0,(x1,x2,x3,x4,x5,y),lp; |
---|
22 | poly f5= ((y^2+(x1-x2)*y+x2)^4*(y+x2)^3*(y-x4*x3)); |
---|
23 | ideal I=x1^2+1, x2^2+x1, x3^2+x2+x1, x4^2+x3+x2+x1; |
---|
24 | ideal J= I,f5; |
---|
25 | char_series (J); |
---|
26 | |
---|
27 | kill r; |
---|
28 | |
---|
29 | ring r=0,(x1,x2,x3,x4,x5,y),lp; |
---|
30 | poly f6= ((y+x1*x3+x2+1)*(y+x3*x4+x1*x3)*(y^3+x3*x4+x1*x3)); |
---|
31 | ideal I=x1^2+1, x2^2+x1, x3^2+x2, x4^2+x3+x2; |
---|
32 | ideal K=I,f6; |
---|
33 | char_series (K); |
---|
34 | |
---|
35 | kill r; |
---|
36 | |
---|
37 | ring r=0,(x1,x2,x3,x4,x5,y),lp; |
---|
38 | poly f6= (y+x1*x3+x2+1)*(y+x1*x3+x2+1)*(y+x3*x4+2*x1*x3); |
---|
39 | ideal I=x1^2+1, x2^2+x1, x3^2+x2, x4^2+x3+x2; |
---|
40 | ideal K=I,f6; |
---|
41 | char_series (K); |
---|
42 | |
---|
43 | kill r; |
---|
44 | |
---|
45 | ring r=0,(t,x1,x2,x3,x4,x5,y),lp; |
---|
46 | poly f6= (y+x1*x3+x2+t)*(y+x1*x3+x2+t)*(y+x3*x4+t*x1*x3); |
---|
47 | ideal I=x1^2+t, x2^2+x1, x3^2+x2, x4^2+x3+x2; |
---|
48 | ideal K=I,f6; |
---|
49 | char_series (K); |
---|
50 | |
---|
51 | kill r; |
---|
52 | |
---|
53 | ring r=0,(t,x1,x2,x3,x4,x5,y),lp; |
---|
54 | poly f6= (y+x1*x3+x2+t)*(y+x3*x4+t*x1*x3); |
---|
55 | ideal I=x1^2+t, x2^2+x1, x3^2+x2, x4^2+x3+x2; |
---|
56 | ideal K=I,f6; |
---|
57 | char_series (K); |
---|
58 | |
---|
59 | kill r; |
---|
60 | |
---|
61 | // examples from J. Kroeker |
---|
62 | ring r=0,(x,y,z),dp; |
---|
63 | ideal I = -3*y^2-3, -3*x^2+1, -x*y+2*z^2; |
---|
64 | char_series (I); |
---|
65 | |
---|
66 | kill r; |
---|
67 | |
---|
68 | ring r=0,(z,y,x),dp; |
---|
69 | ideal I = -3*y^2-3, -3*x^2+1, -x*y+2*z^2; |
---|
70 | char_series (I); |
---|
71 | |
---|
72 | |
---|
73 | tst_status(1);$ |
---|