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

fieker-DuValspielwiese
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: 621 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "perron.lib";
3int p = 3;
4ring AA = p,(x,y,z),dp;
5matrix D[3][3]=0;
6D[1,2]=-z; D[1,3]=2*x; D[2,3]=-2*y;
7def A = nc_algebra(1,D); setring A; // this algebra is U(sl_2)
8ideal I = x^p, y^p, z^p-z, 4*x*y+z^2-2*z; // the center
9def RA = perron( I, p );
10setring RA;
11RA;
12Relations; // it was exported from perron to be in the returned ring.
13// perron can be also used in a commutative case, for example:
14ring B = 0,(x,y,z),dp;
15ideal J = xy+z2, z2+y2, x2y2-2xy3+y4;
16def RB = perron(J);
17setring RB;
18Relations;
19// one more test:
20setring A;
21map T=RA,I;
22T(Relations);  // should be zero
23tst_status(1);$
Note: See TracBrowser for help on using the repository browser.