source: git/Tst/Manual/lprint.tst @ ef52d6

spielwiese
Last change on this file since ef52d6 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: 353 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "inout.lib";
3ring r= 0,(x,y,z),ds;
4poly f=((x+y)*(x-y)*(x+z)*(y+z)^2);
5lprint(f,40);
6module m = [f*(x-y)],[0,f*(x-y)];
7string s=lprint(m); s;"";
8execute("matrix M[2][2]="+s+";");      //use the string s as input
9module m1 = transpose(M);              //should be the same as m
10print(matrix(m)-matrix(m1));
11tst_status(1);$
Note: See TracBrowser for help on using the repository browser.