spielwiese
Last change
on this file since 85d15b1 was
46976a6,
checked in by Olaf Bachmann <obachman@…>, 26 years ago
|
* added status check to regress.cmd
* added tst_status(1); call to each tst file, just before quit
git-svn-id: file:///usr/local/Singular/svn/trunk@2271 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
842 bytes
|
Line | |
---|
1 | LIB "finvar.lib"; |
---|
2 | ring R=0,(x,y,z),dp; |
---|
3 | matrix A[3][3]=0,1,0,-1,0,0,0,0,-1; |
---|
4 | // the group G is generated by A in Gl(3,Q); |
---|
5 | print(A); |
---|
6 | // the fourth power of A is 1: |
---|
7 | print(A*A*A*A); // the fourth power of A is 1 |
---|
8 | // Use the first method to compute the invariants of G: |
---|
9 | matrix B(1..3); |
---|
10 | B(1..3)=invariant_ring(A); |
---|
11 | // Singular returns 2 matrices, the first containing |
---|
12 | // primary invariants and the second secondary |
---|
13 | // invariants, i.e. module generators over a Noetherian |
---|
14 | // normalization |
---|
15 | // the third result are the irreducible secondary invariants |
---|
16 | // if the Molien series was available |
---|
17 | print(B(1)); |
---|
18 | print(B(2)); |
---|
19 | print(B(3)); |
---|
20 | // Use the second method, |
---|
21 | // with using random numbers between -1 and 1: |
---|
22 | B(1..3)=invariant_ring_random(A,1); |
---|
23 | print(B(1..3)); |
---|
24 | LIB "tst.lib";tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.