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:
609 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "multigrading.lib"; |
---|
3 | intmat B[4][2] = |
---|
4 | 1,5, |
---|
5 | 2,6, |
---|
6 | 3,7, |
---|
7 | 4,8; |
---|
8 | // should result in a (2x4)-matrix such that the corresponding lattice is created by |
---|
9 | // [-1, 2], [-2, 3], [-1, 0] and [0, 1] |
---|
10 | print(projectLattice(B)); |
---|
11 | // another example |
---|
12 | intmat BB[4][2] = |
---|
13 | 1,0, |
---|
14 | 0,1, |
---|
15 | 0,0, |
---|
16 | 0,0; |
---|
17 | // should result in a (2x4)-matrix such that the corresponding lattice is created by |
---|
18 | // [0,0],[0,0],[1,0],[0,1] |
---|
19 | print(projectLattice(BB)); |
---|
20 | // another example |
---|
21 | intmat BBB[3][4] = |
---|
22 | 1,0,1,2, |
---|
23 | 1,1,0,0, |
---|
24 | 3,0,0,3; |
---|
25 | // should result in the (1x3)-matrix that consists of just zeros |
---|
26 | print(projectLattice(BBB)); |
---|
27 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.