source: git/Tst/Manual/eliminate_BR_PLURAL_BR.tst @ 951db29

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 
1LIB "tst.lib"; tst_init();
2ring r=0,(e,f,h,a),Dp;
3matrix d[4][4];
4d[1,2]=-h; d[1,3]=2*e; d[2,3]=-2*f;
5def R=nc_algebra(1,d); setring R;
6// this algebra is U(sl_2), tensored with K[a] over K
7option(redSB);
8option(redTail);
9poly  p = 4*e*f+h^2-2*h - a;
10// p is a central element with parameter
11ideal I = e^3, f^3, h^3-4*h, p; // take this ideal
12// and intersect I with the ring K[a]
13ideal 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
16J;
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
22eliminate(I,h);
23// since a commutes with e,f,h, we can eliminate it:
24eliminate(I,a);
25tst_status(1);$
Note: See TracBrowser for help on using the repository browser.