spielwiese
Last change
on this file since 7bb006 was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
965 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "central.lib"; |
---|
3 | ring AA = 0,(x,y,z),dp; |
---|
4 | matrix D[3][3]=0; |
---|
5 | D[1,2]=-z; D[1,3]=2*x; D[2,3]=-2*y; |
---|
6 | def A = nc_algebra(1,D); setring A; // this algebra is U(sl_2) |
---|
7 | poly f = 4*x*y+z^2-2*z; // a central polynomial |
---|
8 | f; |
---|
9 | // find generators of the centralizer of f of degree <= 2: |
---|
10 | ideal c = centralizer(f, 2); |
---|
11 | c; // since f is central, the answer consists of generators of A |
---|
12 | inCentralizer(c, f); // check the result |
---|
13 | // find at least two generators of the centralizer of f: |
---|
14 | ideal cc = centralizer(f,-1,2); |
---|
15 | cc; |
---|
16 | inCentralizer(cc, f); // check the result |
---|
17 | poly g = z^2-2*z; // some non-central polynomial |
---|
18 | // find generators of the centralizer of g of degree <= 2: |
---|
19 | c = centralizer(g, 2); |
---|
20 | c; |
---|
21 | inCentralizer(c, g); // check the result |
---|
22 | // find at least one generator of the centralizer of g: |
---|
23 | centralizer(g,-1,1); |
---|
24 | // find at least two generators of the centralizer of g: |
---|
25 | cc = centralizer(g,-1,2); |
---|
26 | cc; |
---|
27 | inCentralizer(cc, g); // check the result |
---|
28 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.