source: git/Tst/Manual/freerank.tst @ 0acf3e

fieker-DuValspielwiese
Last change on this file since 0acf3e 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: 381 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "poly.lib";
3ring r;
4ideal i=x;
5module M=[x,0,1],[-x,0,-1];
6freerank(M);          // should be 2, coker(M) is not free
7freerank(syz (M),"");
8// [1] should be 1, coker(syz(M))=M is free of rank 1
9// [2] should be gen(2)+gen(1) (minimal relation of M)
10freerank(i);
11freerank(syz(i));     // should be 1, coker(syz(i))=i is free of rank 1
12tst_status(1);$
Note: See TracBrowser for help on using the repository browser.