source: git/Tst/Manual/hermiteNormalForm.tst @ 85bcd6

fieker-DuValspielwiese
Last change on this file since 85bcd6 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: 393 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "multigrading.lib";
3intmat M[2][5] =
41, 2, 3, 4, 0,
50,10,20,30, 1;
6// Hermite Normal Form of M:
7print(hermiteNormalForm(M));
8intmat T[3][4] =
93,3,3,3,
102,1,3,0,
111,2,0,3;
12// Hermite Normal Form of T:
13print(hermiteNormalForm(T));
14intmat A[4][5] =
151,2,3,2,2,
161,2,3,4,0,
170,5,4,2,1,
183,2,4,0,2;
19// Hermite Normal Form of A:
20print(hermiteNormalForm(A));
21tst_status(1);$
Note: See TracBrowser for help on using the repository browser.