source: git/Tst/Manual/getVariableWeights.tst @ 6fb723

spielwiese
Last change on this file since 6fb723 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: 1014 bytes
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// Grading group:
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// Weights are accessible via "getVariableWeights()":
17getVariableWeights() == M;
18kill L, M;
19// ----------- isomorphic multigrading -------- //
20// Weights of variables
21intmat M[2][3] =
221, -2, 1,
231,  1, 0;
24// Grading group:
25intmat L[2][1] =
260,
272;
28// attaches M & L to R (==basering):
29setBaseMultigrading(M, L); // Grading: Z + (Z/2Z)
30// Weights are accessible via "getVariableWeights()":
31getVariableWeights() == M;
32kill L, M;
33// ----------- extreme case ------------ //
34// Weights of variables
35intmat M[1][3] =
361,  -1, 10;
37// Grading group:
38intmat L[1][1] =
390;
40// attaches M & L to R (==basering):
41setBaseMultigrading(M); // Grading: Z^3
42// Weights are accessible via "getVariableWeights()":
43getVariableWeights() == M;
44tst_status(1);$
Note: See TracBrowser for help on using the repository browser.