source: git/Tst/Plural/mult_lie1.tst @ 56c0fe

spielwiese
Last change on this file since 56c0fe was e0b657, checked in by Hans Schönemann <hannes@…>, 17 years ago
*hannes: ncalgebra -> nc_algebra git-svn-id: file:///usr/local/Singular/svn/trunk@10367 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 498 bytes
Line 
1// File: mult_lie1.tst
2// multiplication tests in enveloping algebras of Lie algebras
3LIB "tst.lib";
4tst_init();
5ring r=0,(x,y,z),dp;
6matrix D[3][3];
7D[1,2]=-z;
8D[1,3]=2x;
9D[2,3]=-2y;
10def S=nc_algebra(1,D);setring S;
11int N=11;
12poly f;
13poly g;
14int i;
15int j;
16int k;
17for(i=1;i<=N;i++)
18{
19  for(j=1;j<=N;j++)
20  {
21    for(k=1;k<=N;k++)
22    {
23       f=(z^k*y^j)*x^i;
24       g=z^k*(y^j*x^i);
25       g=g-f;
26       if (g!=0) {"Associativity Failed at:";i;j;k;f;}
27    }
28  } 
29}
30z^7*y^6*x^5;
31tst_status(1);
32$
Note: See TracBrowser for help on using the repository browser.