spielwiese
Last change
on this file since e670d00 was
e670d00,
checked in by Hans Schönemann <hannes@…>, 17 years ago
|
*hannes: system(PLURAL) ->ncalgebra
git-svn-id: file:///usr/local/Singular/svn/trunk@9595 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100755
|
File size:
481 bytes
|
Line | |
---|
1 | // File: mult_lie1.tst |
---|
2 | // multiplication tests in enveloping algebras of Lie algebras |
---|
3 | LIB "tst.lib"; |
---|
4 | tst_init(); |
---|
5 | ring r=0,(x,y,z),dp; |
---|
6 | matrix D[3][3]; |
---|
7 | D[1,2]=-z; |
---|
8 | D[1,3]=2x; |
---|
9 | D[2,3]=-2y; |
---|
10 | ncalgebra(1,D); |
---|
11 | int N=11; |
---|
12 | poly f; |
---|
13 | poly g; |
---|
14 | int i; |
---|
15 | int j; |
---|
16 | int k; |
---|
17 | for(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 | } |
---|
30 | z^7*y^6*x^5; |
---|
31 | tst_status(1); |
---|
32 | $ |
---|
Note: See
TracBrowser
for help on using the repository browser.