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