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:
307 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "multigrading.lib"; |
---|
3 | intmat A[3][3] = |
---|
4 | 1,1,3, |
---|
5 | 3,2,0, |
---|
6 | 0,0,1; |
---|
7 | intmat B = intInverse(A); |
---|
8 | // should be the unit matrix |
---|
9 | print(A * B); |
---|
10 | // another example |
---|
11 | intmat C[2][2] = |
---|
12 | 2,1, |
---|
13 | 3,2; |
---|
14 | intmat D = intInverse(C); |
---|
15 | // should be the unit matrix |
---|
16 | print(C * D); |
---|
17 | kill A, B, C, D; |
---|
18 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.