fieker-DuValspielwiese
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
|
Rev | Line | |
---|
[894057] | 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 | // Grading group: |
---|
| 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 | // Weights are accessible via "getVariableWeights()": |
---|
| 17 | getVariableWeights() == M; |
---|
| 18 | kill L, M; |
---|
| 19 | // ----------- isomorphic multigrading -------- // |
---|
| 20 | // Weights of variables |
---|
| 21 | intmat M[2][3] = |
---|
| 22 | 1, -2, 1, |
---|
| 23 | 1, 1, 0; |
---|
| 24 | // Grading group: |
---|
| 25 | intmat L[2][1] = |
---|
| 26 | 0, |
---|
| 27 | 2; |
---|
| 28 | // attaches M & L to R (==basering): |
---|
| 29 | setBaseMultigrading(M, L); // Grading: Z + (Z/2Z) |
---|
| 30 | // Weights are accessible via "getVariableWeights()": |
---|
| 31 | getVariableWeights() == M; |
---|
| 32 | kill L, M; |
---|
| 33 | // ----------- extreme case ------------ // |
---|
| 34 | // Weights of variables |
---|
| 35 | intmat M[1][3] = |
---|
| 36 | 1, -1, 10; |
---|
| 37 | // Grading group: |
---|
| 38 | intmat L[1][1] = |
---|
| 39 | 0; |
---|
| 40 | // attaches M & L to R (==basering): |
---|
| 41 | setBaseMultigrading(M); // Grading: Z^3 |
---|
| 42 | // Weights are accessible via "getVariableWeights()": |
---|
| 43 | getVariableWeights() == M; |
---|
| 44 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.