source: git/Tst/dyn_modules/p_content.tst

spielwiese
Last change on this file was 92ee61, checked in by Hans Schoenemann <hannes@…>, 2 years ago
tests: dyn_modules/p_content
  • Property mode set to 100644
File size: 2.0 KB
Line 
1LIB "tst.lib"; tst_init();
2echo = 2;
3
4LIB("syzextra.so");
5
6option(redSB);option(redTail);
7
8ring r=(0,q),(U,V,S,T),lp;
9
10poly o = (-q4-5q3-2q2+10q-4)/(q)*ST2+(-q4-6q3-5q2+12q-4)*ST+(q5+5q4+2q3-10q2+4q)*T2+(q5+6q4+5q3-12q2+4q)*T;
11
12poly O = o;
13
14O;
15
16simplify(O, 1 + 2 + 4 + 8);
17
18leadcoef(o) / leadcoef(O);
19
20o = o - lead(o);
21O = O - lead(O);
22
23leadcoef(o) / leadcoef(O);
24
25
26o = o - lead(o);
27O = O - lead(O);
28
29leadcoef(o) / leadcoef(O);
30
31o = o - lead(o);
32O = O - lead(O);
33
34leadcoef(o) / leadcoef(O);
35
36o;
37O;
38
39
40tst_status(1);$
41
42$$$
43
44
45/*
46matrix C[4][4];
47C[1,2]=1/q;
48C[1,3]=1;
49C[1,4]=1;
50C[2,3]=1;
51C[2,4]=1;
52C[3,4]=1/q;
53def R=nc_algebra(C,0);
54setring R;
55R;
56
57DetailedPrint(R);
58
59*/
60
61
62// characteristic : 0
63// 1 parameter : q
64// minpoly : 0
65// number of vars : 4
66// block 1 : ordering lp
67// : names U V S T
68// block 2 : ordering C
69// noncommutative relations:
70// VU=1/(q)*UV
71// TS=1/(q)*ST
72ideal I=U*V+S-V-1,U-V-V*T,U+V-V*S;
73
74I;
75// I[1]=UV-V+S-1
76// I[2]=U-VT-V
77// I[3]=U-VS+V
78
79slimgb(I);// correct
80
81
82option(mem);
83option(prot);
84option(teach);
85
86
87
88$$
89
90
91LIB "teachstd.lib";
92printlevel = 0;
93standard(I);
94
95simplify(_, 1+2+4);
96
97ideal II = _;
98slimgb(II);
99
100
101interred(II);
102
103
104
105$
106
107
108
109// std(ideal(II[7], II[1]));
110
111std(ideal(II[7], II[3], II[9]));
112
113$$$
114
115
116std(I);
117// G[1]=T
118// G[2]=S-1
119// G[3]=V
120// G[4]=U
121
122
123
124matrix M;
125ideal H=liftstd(I,M);
126
127// _[1]=T
128// _[2]=S-1
129// _[3]=V
130// _[4]=U
131H;
132// H[1]=(q7-q6-3q5+5q4-2q3)*S+(-q7+q6+3q5-5q4+2q3)
133// H[2]=(-q11+2q10+2q9-8q8+7q7-2q6)*V
134// H[3]=(q6-3q4+2q3)*U
135std(H);
136// _[1]=S-1
137// _[2]=V
138// _[3]=U
139
140M;
141print(M);
142
143
144
145
146kill r, R;
147
148$$$$
149
150
151ring r=(0,Q),(U,V,S,T),lp;
152matrix C[4][4];
153C[1,2]=Q;
154C[1,3]=1;
155C[1,4]=1;
156C[2,3]=1;
157C[2,4]=1;
158C[3,4]=Q;
159print(C);
160def R=nc_algebra(C,0);
161setring R;
162R;
163ideal I=U*V+S-V-1,U-V-V*T,U+V-V*S;
164option(redSB);
165option(redTail);
166slimgb(I);// correct
167std(I); // is correct as well!!!
168
169
170// U, V, S-1
171
172
173matrix Z;
174liftstd(I,Z);
175
176
177// _[1]=(2Q11-5Q10+3Q9+Q8-Q7)*S+(-2Q11+5Q10-3Q9-Q8+Q7)
178// _[2]=(-2Q16+7Q15-8Q14+2Q13+2Q12-Q11)*V
179// _[3]=(2Q7-3Q6+Q4)*U
180
181
182simplify(_,1+2+4 );
183
184$$
185
Note: See TracBrowser for help on using the repository browser.