source: git/Tst/Manual/applyAdF.tst @ 6fb723

spielwiese
Last change on this file since 6fb723 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: 757 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "central.lib";
3ring AA = 0,(e,f,h),dp;
4matrix D[3][3]=0;
5D[1,2]=-h;  D[1,3]=2*e;  D[2,3]=-2*f;
6def A = nc_algebra(1,D); setring A; // this algebra is U(sl_2)
7// Let us consider the linear map Ad_{e} from A_2 into A.
8// Compute the PBW basis of A_2:
9ideal Basis = PBW_maxDeg( 2 ); Basis;
10// Compute images of basis elements under the linear map Ad_e:
11ideal Image = applyAdF( Basis, e ); Image;
12// Now we have a linear map given by: Basis_i --> Image_i
13// Let's compute its kernel K:
14// 1. compute syzygy module C:
15module C = linearMapKernel( Image ); C;
16// 2. compute corresponding combinations of basis vectors:
17ideal K = linearCombinations(Basis, C); K;
18// Let's check that Ad_e(K) is zero:
19applyAdF( K, e );
20tst_status(1);$
Note: See TracBrowser for help on using the repository browser.