source: git/Tst/Manual/U_D_O.tst @ 0d6b7fc

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