source: git/Tst/Manual/centralizeSet.tst @ 76ce4e6

spielwiese
Last change on this file since 76ce4e6 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: 707 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "central.lib";
3ring A = 0,(e(1..4)),dp;
4matrix D[4][4]=0;
5D[2,4] = -e(1);
6D[3,4] = -e(2);
7// This is A_4_1 - the first real Lie algebra of dimension 4.
8def A_4_1 = nc_algebra(1,D); setring A_4_1;
9ideal F = variablesSorted(); F;
10// the center of A_4_1 is generated by
11// e(1) and -1/2*e(2)^2+e(1)*e(3)
12// therefore one may consider computing it in the following way:
13// 1. Compute a PBW basis consisting of
14//    monomials with exponent <= (1,2,1,0)
15ideal V = PBW_maxMonom( e(1) * e(2)^ 2 * e(3) );
16// 2. Compute the centralizer of F within the vector space
17//    spanned by these monomials:
18ideal C = centralizeSet( F, V ); C;
19inCenter(C); // check the result
20tst_status(1);$
Note: See TracBrowser for help on using the repository browser.