fieker-DuValspielwiese
Release-4-3-2p2
Last change
on this file since 0d6b7fc 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
|
Rev | Line | |
---|
[894057] | 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.