source: git/Tst/Manual/mindist.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: 278 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "decodegb.lib";
3//determine a minimum distance for a [7,3] binary code
4int q=8; int n=7; int redun=4; int t=redun+1;
5ring r=(q,a),x,dp;
6//generate random check matrix
7matrix h=randomCheck(redun,n,1);
8print(h);
9int l=mindist(h);
10l;
11tst_status(1);$
Note: See TracBrowser for help on using the repository browser.