source: git/Tst/Plural/mult_general1.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: 453 bytes
Line 
1LIB "tst.lib";
2tst_init();
3ring r=(0,Q),(x,y,z),Dp;
4matrix C[3][3];
5matrix D[3][3];
6C[1,2]=Q2;
7C[1,3]=1/Q2;
8C[2,3]=Q2;
9D[1,2]=-Q*z;
10D[1,3]=1/Q*y;
11D[2,3]=-Q*x;
12def S=nc_algebra(C,D); setring S;
13int N=5;
14poly f;
15poly g;
16int i;
17int j;
18int k;
19for(i=1;i<=N;i++)
20{
21  for(j=1;j<=N;j++)
22  {
23    for(k=1;k<=N;k++)
24    {
25       f=(z^k*y^j)*x^i;
26       g=z^k*(y^j*x^i);
27       g=g-f;
28       if (g!=0) {"Fail";i;j;k;f;}
29    }
30  } 
31}
32z^5*y^4*x^3;
33tst_status(1);$
Note: See TracBrowser for help on using the repository browser.