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:
345 bytes
|
Line | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | ring r=0,(x,y,z),dp; |
---|
4 | matrix D[3][3]; |
---|
5 | D[1,2]=-z; |
---|
6 | D[1,3]=y; |
---|
7 | D[2,3]=x; |
---|
8 | system("PLURAL",1,D); |
---|
9 | ideal I = 0,x,0,1; |
---|
10 | I; |
---|
11 | I + 0; // simplification |
---|
12 | ideal J = I,0,x,x-z; |
---|
13 | J; |
---|
14 | I * J; // multiplication with simplification |
---|
15 | I*x; |
---|
16 | vector V = [x,y,z]; |
---|
17 | print(V*I); |
---|
18 | ideal m = maxideal(1); |
---|
19 | m^2; |
---|
20 | ideal II = I[2..4]; |
---|
21 | II; |
---|
22 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.