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 | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | ring r=(0,Q),(x,y,z),Dp; |
---|
4 | matrix C[3][3]; |
---|
5 | matrix D[3][3]; |
---|
6 | C[1,2]=Q2; |
---|
7 | C[1,3]=1/Q2; |
---|
8 | C[2,3]=Q2; |
---|
9 | D[1,2]=-Q*z; |
---|
10 | D[1,3]=1/Q*y; |
---|
11 | D[2,3]=-Q*x; |
---|
12 | def S=nc_algebra(C,D); setring S; |
---|
13 | int N=5; |
---|
14 | poly f; |
---|
15 | poly g; |
---|
16 | int i; |
---|
17 | int j; |
---|
18 | int k; |
---|
19 | for(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 | } |
---|
32 | z^5*y^4*x^3; |
---|
33 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.