source: git/Tst/Manual/truncate.tst @ 951db29

spielwiese
Last change on this file since 951db29 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: 424 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "sheafcoh.lib";
3ring R=0,(x,y,z),dp;
4module M=maxideal(3);
5homog(M);
6// compute presentation matrix for truncated module (R/<x,y,z>^3)_(>=2)
7module M2=truncate(M,2);
8print(M2);
9dimGradedPart(M2,1);
10dimGradedPart(M2,2);
11// this should coincide with:
12dimGradedPart(M,2);
13// shift grading by 1:
14intvec v=1;
15attrib(M,"isHomog",v);
16M2=truncate(M,2);
17print(M2);
18dimGradedPart(M2,3);
19tst_status(1);$
Note: See TracBrowser for help on using the repository browser.