source: git/Tst/Manual/busadj.tst @ 36bbdc

spielwiese
Last change on this file since 36bbdc 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: 298 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "linalg.lib";
3ring r = 0,(t,x),lp;
4matrix A[2][2] = 1,x2,x,x2+3x;
5print(A);
6list L = busadj(A);
7poly X = L[1][1]+L[1][2]*t+L[1][3]*t2; X;
8matrix bA[2][2] = L[2][1]+L[2][2]*t;
9print(bA);               //the busadjoint of A;
10print(bA*(t*unitmat(2)-A));
11tst_status(1);$
Note: See TracBrowser for help on using the repository browser.