source: git/Tst/Manual/sysCRHT.tst @ 0d6b7fc

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