source: git/Tst/Manual/findAuto.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: 1022 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "involut.lib";
3def a = makeWeyl(1);
4setring a; // this algebra is a first Weyl algebra
5a;
6def X = findAuto(2);  // in contrast to findInvo look for automorphisms
7setring X; // ring with new variables - unknown coefficients
8X;
9size(L); // we have (size(L)) families in the answer
10// look at matrices, defining linear automorphisms:
11print(L[1][2]);  // a first one: we see it is the identity
12print(L[2][2]);  // and a second possible matrix; it is diagonal
13// L; // we can take a look on the whole list, too
14idJ;
15kill X; kill a;
16//----------- find all the linear automorphisms --------------------
17//----------- use the call findAuto(0)          --------------------
18ring R = 0,(x,s),dp;
19def r = nc_algebra(1,s); setring r; // the shift algebra
20s*x; // the only relation in the algebra is:
21def Y = findAuto(0);
22setring Y;
23size(L); // here, we have 1 parametrized family
24print(L[1][2]); // here, @p is a nonzero parameter
25det(L[1][2]-@p);  // check whether determinante is zero
26tst_status(1);$
Note: See TracBrowser for help on using the repository browser.