source: git/Tst/Manual/jacobson.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: 676 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "jacobson.lib";
3ring r = 0,(x,d),Dp;
4def R = nc_algebra(1,1);   setring R; // the 1st Weyl algebra
5matrix m[2][2] = d,x,0,d; print(m);
6list J = jacobson(m); // returns a list with 3 entries
7print(J[2]); // a Jacobson Form D for m
8print(J[1]*m*J[3] - J[2]); // check that U*M*V = D
9/*   now, let us do the same for the shift algebra  */
10ring r2 = 0,(x,s),Dp;
11def R2 = nc_algebra(1,s);   setring R2; // the 1st shift algebra
12matrix m[2][2] = s,x,0,s; print(m); // matrix of the same for as above
13list J = jacobson(m);
14print(J[2]); // a Jacobson Form D, quite different from above
15print(J[1]*m*J[3] - J[2]); // check that U*M*V = D
16tst_status(1);$
Note: See TracBrowser for help on using the repository browser.