source: git/Tst/Manual/Invariants_of_a_finite_group.tst @ 0d6b7fc

spielwiese Release-4-3-2p2
Last change on this file since 0d6b7fc 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: 793 bytes
Line 
1LIB "tst.lib"; tst_init();
2  LIB "finvar.lib";
3  ring R=0,(x,y,z),dp;
4  matrix A[3][3]=0,1,0,-1,0,0,0,0,-1;
5  // the group G is generated by A in Gl(3,Q);
6  print(A);
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 random numbers between -1 and 1:
22  B(1..3)=invariant_ring_random(A,1);
23  print(B(1..3));
24tst_status(1);$
Note: See TracBrowser for help on using the repository browser.