source: git/Tst/Manual/ludecomp.tst

spielwiese
Last change on this file 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: 266 bytes
Line 
1LIB "tst.lib"; tst_init();
2  ring r=0,(x),dp;
3  matrix A[3][4]=1,2,3,4,1,1,1,1,2,2,1,1;
4  list plu = ludecomp(A);
5  print(plu[3]);                   // the matrix U of the decomposition
6  print(plu[1]*A-plu[2]*plu[3]);   // should be the zero matrix
7tst_status(1);$
Note: See TracBrowser for help on using the repository browser.