source: git/Tst/Manual/randomCheck.tst @ 6fb723

spielwiese
Last change on this file since 6fb723 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();
2LIB "decodegb.lib";
3int redun=5; int n=15;
4ring r=2,x,dp;
5//generate random check matrix for a [15,5] binary code
6matrix h=randomCheck(redun,n,1);
7print(h);
8//corresponding generator matrix
9matrix g=dual_code(h);
10print(g);
11tst_status(1);$
Note: See TracBrowser for help on using the repository browser.