source: git/Tst/Manual/bareiss.tst @ 228e0b

spielwiese
Last change on this file since 228e0b 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: 695 bytes
Line 
1LIB "tst.lib"; tst_init();
2  ring r=0,(x,y,z),(c,dp);
3  module mm;
4  // ** generation of the module mm **
5  int d=7;
6  int b=2;
7  int db=d-b;
8  int i;
9  for(i=d;i>0;i--){ mm[i]=3*x*gen(i); }
10  for(i=db;i;i--){ mm[i]=mm[i]+7*y*gen(i+b); }
11  for(i=d;i>db;i--){ mm[i]=mm[i]+7*y*gen(i-db); }
12  for(i=d;i>b;i--){ mm[i]=mm[i]+11*z*gen(i-b); }
13  for(i=b;i;i--){ mm[i]=mm[i]+11*z*gen(i+db); }
14  // ** the generating matrix of mm **
15  print(mm);
16  // complete elimination
17  list ss=bareiss(mm);
18  print(ss[1]);
19  ss[2];
20  // elimination up to 3 vectors
21  ss=bareiss(mm,0,3);
22  print(ss[1]);
23  ss[2];
24  // elimination without the last 3 rows
25  ss=bareiss(mm,3,0);
26  print(ss[1]);
27  ss[2];
28tst_status(1);$
Note: See TracBrowser for help on using the repository browser.