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 | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "brnoeth.lib"; |
---|
3 | int plevel=printlevel; |
---|
4 | printlevel=-1; |
---|
5 | ring s=2,(x,y),lp; |
---|
6 | list HC=Adj_div(x3+y2+y); |
---|
7 | HC=NSplaces(1..2,HC); |
---|
8 | HC=extcurve(2,HC); |
---|
9 | def ER=HC[1][4]; |
---|
10 | setring ER; |
---|
11 | intvec G=5; // the rational divisor G = 5*HC[3][1] |
---|
12 | intvec 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: |
---|
14 | matrix 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 |
---|
17 | intvec F=2; |
---|
18 | list SV=prepSV(G,D,F,HC); |
---|
19 | // now we produce 1 error on the zero-codeword : |
---|
20 | matrix y[1][8]; |
---|
21 | y[1,3]=a; |
---|
22 | // and then we decode : |
---|
23 | print(decodeSV(y,SV)); |
---|
24 | printlevel=plevel; |
---|
25 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.