spielwiese
Last change
on this file since 951db29 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:
810 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | ring r=0,(e,f,h,a),Dp; |
---|
3 | matrix d[4][4]; |
---|
4 | d[1,2]=-h; d[1,3]=2*e; d[2,3]=-2*f; |
---|
5 | def R=nc_algebra(1,d); setring R; |
---|
6 | // this algebra is U(sl_2), tensored with K[a] over K |
---|
7 | option(redSB); |
---|
8 | option(redTail); |
---|
9 | poly p = 4*e*f+h^2-2*h - a; |
---|
10 | // p is a central element with parameter |
---|
11 | ideal I = e^3, f^3, h^3-4*h, p; // take this ideal |
---|
12 | // and intersect I with the ring K[a] |
---|
13 | ideal J = eliminate(I,e*f*h); |
---|
14 | // if we want substitute 'a' with a value, |
---|
15 | // it has to be a root of this polynomial |
---|
16 | J; |
---|
17 | // now we try to eliminate h, |
---|
18 | // that is we intersect I with the subalgebra S, |
---|
19 | // generated by e and f. |
---|
20 | // But S is not closed in itself, since f*e-e*f=-h ! |
---|
21 | // the next command will definitely produce an error |
---|
22 | eliminate(I,h); |
---|
23 | // since a commutes with e,f,h, we can eliminate it: |
---|
24 | eliminate(I,a); |
---|
25 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.