source: git/Tst/Manual/gaussred.tst @ 951db29

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