source: git/Tst/Manual/getLattice.tst @ 951db29

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: 1.1 KB
Line 
1LIB "tst.lib"; tst_init();
2LIB "multigrading.lib";
3ring R = 0, (x, y, z), dp;
4// Weights of variables
5intmat M[3][3] =
61, 0, 0,
70, 1, 0,
80, 0, 1;
9// Torsion:
10intmat L[3][2] =
111, 1,
121, 3,
131, 5;
14// attaches M & L to R (==basering):
15setBaseMultigrading(M, L); // Grading: Z^3/L
16// Torsion is accessible via "getLattice()":
17getLattice() == L;
18// its hermite NF:
19print(getLattice("hermite"));
20kill L, M;
21// ----------- isomorphic multigrading -------- //
22// Weights of variables
23intmat M[2][3] =
241, -2, 1,
251,  1, 0;
26// Torsion:
27intmat L[2][1] =
280,
292;
30// attaches M & L to R (==basering):
31setBaseMultigrading(M, L); // Grading: Z + (Z/2Z)
32// Torsion is accessible via "getLattice()":
33getLattice() == L;
34// its hermite NF:
35print(getLattice("hermite"));
36kill L, M;
37// ----------- extreme case ------------ //
38// Weights of variables
39intmat M[1][3] =
401,  -1, 10;
41// Torsion:
42intmat L[1][1] =
430;
44// attaches M & L to R (==basering):
45setBaseMultigrading(M); // Grading: Z^3
46// Torsion is accessible via "getLattice()":
47getLattice() == L;
48// its hermite NF:
49print(getLattice("hermite"));
50tst_status(1);$
Note: See TracBrowser for help on using the repository browser.