source: git/Tst/Manual/reduce_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: 590 bytes
Line 
1LIB "tst.lib"; tst_init();
2ring r=(0,a),(e,f,h),Dp;
3matrix d[3][3];
4d[1,2]=-h;  d[1,3]=2e;  d[2,3]=-2f;
5def R=nc_algebra(1,d);
6setring R;
7// this algebra is U(sl_2) over Q(a)
8ideal I = e2, f2, h2-1;
9I = std(I);
10// print a compact presentation of I
11print(matrix(I));
12ideal J = e, h-a;
13J = std(J);
14// print a compact presentation of J
15print(matrix(J));
16poly z=4*e*f+h^2-2*h;
17// z is the central element of U(sl_2)
18reduce(z,I);  // the central character of I:
19reduce(z,J); // the central character of J:
20poly nz = z - NF(z,J); // nz will belong to J
21reduce(nz,J);
22reduce(I,J);
23tst_status(1);$
Note: See TracBrowser for help on using the repository browser.