source: git/Tst/Manual/decodeSV.tst @ 7bb006

spielwiese
Last change on this file since 7bb006 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: 732 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "brnoeth.lib";
3int plevel=printlevel;
4printlevel=-1;
5ring s=2,(x,y),lp;
6list HC=Adj_div(x3+y2+y);
7HC=NSplaces(1..2,HC);
8HC=extcurve(2,HC);
9def ER=HC[1][4];
10setring ER;
11intvec G=5;      // the rational divisor G = 5*HC[3][1]
12intvec D=2..9;   // D = sum of the rational places no. 2..9 over F_4
13// construct the corresp. residual AG code of type [8,3,>=5] over F_4:
14matrix C=AGcode_Omega(G,D,HC);
15// we can correct 1 error and the genus is 1, thus F must have degree 2
16// and support disjoint from that of D
17intvec F=2;
18list SV=prepSV(G,D,F,HC);
19// now we produce 1 error on the zero-codeword :
20matrix y[1][8];
21y[1,3]=a;
22// and then we decode :
23print(decodeSV(y,SV));
24printlevel=plevel;
25tst_status(1);$
Note: See TracBrowser for help on using the repository browser.