spielwiese
Release-4-3-2p2
Last change
on this file since 0d6b7fc 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:
1.0 KB
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "decodegb.lib"; |
---|
3 | // binary cyclic [15,7,5] code with defining set (1,3) |
---|
4 | intvec v = option(get); |
---|
5 | list defset=1,3; // defining set |
---|
6 | int n=15; // length |
---|
7 | int e=2; // error-correcting capacity |
---|
8 | int q=2; // basefield size |
---|
9 | int m=4; // degree extension of the splitting field |
---|
10 | int sala=1; // indicator to add additional equations |
---|
11 | def A=sysCRHT(n,defset,e,q,m); |
---|
12 | setring A; |
---|
13 | A; // shows the ring we are working in |
---|
14 | print(crht); // the CRHT-ideal |
---|
15 | option(redSB); |
---|
16 | ideal red_crht=std(crht); // reduced Groebner basis |
---|
17 | print(red_crht); |
---|
18 | //============================ |
---|
19 | A=sysCRHT(n,defset,e,q,m,sala); |
---|
20 | setring A; |
---|
21 | print(crht); // CRHT-ideal with additional equations from Sala |
---|
22 | option(redSB); |
---|
23 | ideal red_crht=std(crht); // reduced Groebner basis |
---|
24 | print(red_crht); |
---|
25 | red_crht[5]; // general error-locator polynomial for this code |
---|
26 | option(set,v); |
---|
27 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.