source: git/Tst/Manual/dual_code.tst @ c2f6bd

spielwiese
Last change on this file since c2f6bd 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: 234 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "brnoeth.lib";
3ring s=2,T,lp;
4// here is the Hamming code of length 7 and dimension 3
5matrix G[3][7]=1,0,1,0,1,0,1,0,1,1,0,0,1,1,0,0,0,1,1,1,1;
6print(G);
7matrix H=dual_code(G);
8print(H);
9tst_status(1);$
Note: See TracBrowser for help on using the repository browser.