spielwiese
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:
480 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "linalg.lib"; |
---|
3 | ring r = 0,(x),dp; |
---|
4 | matrix A[5][5] = 10, 4, 0, -9, 8, |
---|
5 | -3, 6, -6, -4, 9, |
---|
6 | 0, 3, -1, -9, -8, |
---|
7 | -4,-2, -6, -10,10, |
---|
8 | -9, 5, -1, -6, 5; |
---|
9 | list Z = U_D_O(A); //construct P,U,D,O s.t. P*A=U*D*O |
---|
10 | print(Z[1]); //P |
---|
11 | print(Z[2]); //U |
---|
12 | print(Z[3]); //D |
---|
13 | print(Z[4]); //O |
---|
14 | print(Z[1]*A); //P*A |
---|
15 | print(Z[2]*Z[3]*Z[4]); //U*D*O |
---|
16 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.