spielwiese
Last change
on this file since a6e7454 was
a6e7454,
checked in by Viktor Levandovskyy <levandov@…>, 20 years ago
|
nontrivial examples from Plural doc
git-svn-id: file:///usr/local/Singular/svn/trunk@6653 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
386 bytes
|
Line | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | ring A=0,(x,y,z),Dp; |
---|
4 | matrix d[3][3]; |
---|
5 | d[1,2]=-z; |
---|
6 | d[1,3]=2x; |
---|
7 | d[2,3]=-2y; |
---|
8 | system("PLURAL",1,d); |
---|
9 | ideal i=x,y,z; |
---|
10 | i=std(i); |
---|
11 | resolution F=nres(i,0); |
---|
12 | F; |
---|
13 | int a; |
---|
14 | for (a=1;a<=size(list(F));a++) |
---|
15 | { |
---|
16 | printf("Module: %s",a); |
---|
17 | print(matrix(F[a])); |
---|
18 | } |
---|
19 | resolution MF=minres(F); |
---|
20 | MF; |
---|
21 | for (a=1;a<=size(list(MF));a++) |
---|
22 | { |
---|
23 | printf("Module: %s",a); |
---|
24 | print(matrix(MF[a])); |
---|
25 | } |
---|
26 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.