source: git/Tst/Manual/sheafCohBGG2.tst @ 85bcd6

fieker-DuValspielwiese
Last change on this file since 85bcd6 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.5 KB
Line 
1LIB "tst.lib"; tst_init();
2LIB "sheafcoh.lib";
3int pl = printlevel;
4int l,h, t;
5//-------------------------------------------
6// cohomology of structure sheaf on P^4:
7//-------------------------------------------
8ring r=32001,x(1..5),dp;
9module M= getStructureSheaf(); // OO_P^4
10l = -12; h = 12; // range of twists: l..h
11printlevel = 0;
12//////////////////////////////////////////////
13t = timer;
14def A = sheafCoh(M, l, h); // global Ext method:
15"Time: ", timer - t;
16//////////////////////////////////////////////
17t = timer;
18A = sheafCohBGG(M, l, h);  // BGG method (without optimization):
19"Time: ", timer - t;
20//////////////////////////////////////////////
21t = timer;
22A = sheafCohBGG2(M, l, h); // BGG method (with optimization)
23"Time: ", timer - t;
24//////////////////////////////////////////////
25printlevel = pl;
26kill A, r;
27//-------------------------------------------
28// cohomology of cotangential bundle on P^3:
29//-------------------------------------------
30ring R=32001,(x,y,z,u),dp;
31module M = getCotangentialBundle();
32l = -12; h = 11; // range of twists: l..h
33//////////////////////////////////////////////
34printlevel = 0;
35t = timer;
36def B = sheafCoh(M, l, h); // global Ext method:
37"Time: ", timer - t;
38//////////////////////////////////////////////
39t = timer;
40B = sheafCohBGG(M, l, h);  // BGG method (without optimization):
41"Time: ", timer - t;
42//////////////////////////////////////////////
43t = timer;
44B = sheafCohBGG2(M, l, h); // BGG method (with optimization)
45"Time: ", timer - t;
46//////////////////////////////////////////////
47printlevel = pl;
48tst_status(1);$
Note: See TracBrowser for help on using the repository browser.