spielwiese
Last change
on this file since 951db29 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:
623 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "ainvar.lib"; |
---|
3 | int n=5; |
---|
4 | int i; |
---|
5 | ring s=32003,(x(1..n)),wp(1,2,3,4,5); |
---|
6 | // definition of the vectorfield m=sum m[i,1]*d/dx(i) |
---|
7 | matrix m[n][1]; |
---|
8 | for (i=1;i<=n-1;i=i+1) |
---|
9 | { |
---|
10 | m[i+1,1]=x(i); |
---|
11 | } |
---|
12 | // computation of the ring of invariants |
---|
13 | ideal in=invariantRing(m,x(2),x(1),0); |
---|
14 | in; //invariant ring is generated by 5 invariants |
---|
15 | ring q=32003,(x,y,z,u,v,w),dp; |
---|
16 | matrix m[6][1]; |
---|
17 | m[2,1]=x; |
---|
18 | m[3,1]=y; |
---|
19 | m[5,1]=u; |
---|
20 | m[6,1]=v; |
---|
21 | // the vectorfield is: xd/dy+yd/dz+ud/dv+vd/dw |
---|
22 | ideal in=invariantRing(m,y,x,0); |
---|
23 | in; //invariant ring is generated by 6 invariants |
---|
24 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.