| LIB "sheafcoh.lib";
// cohomology of structure sheaf on P^4:
//-------------------------------------------
ring r=0,x(1..5),dp;
module M=0;
intmat A=sheafCohBGG(M,-9,4);
A;
==> 70,35,15,5,1,0,0,0,0,0,-1,-1,-1,-1,
==> -1,0,0,0,0,0,0,0,0,0,0,-1,-1,-1,
==> -1,-1,0,0,0,0,0,0,0,0,0,0,-1,-1,
==> -1,-1,-1,0,0,0,0,0,0,0,0,0,0,-1,
==> -1,-1,-1,-1,0,0,0,0,0,1,5,15,35,70
displayCohom(A,-9,4,nvars(r)-1);
==> -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4
==> ------------------------------------------------------------
==> 4: 70 35 15 5 1 - - - - - * * * *
==> 3: * - - - - - - - - - - * * *
==> 2: * * - - - - - - - - - - * *
==> 1: * * * - - - - - - - - - - *
==> 0: * * * * - - - - - 1 5 15 35 70
==> ------------------------------------------------------------
==> chi: * * * * 1 0 0 0 0 1 * * * *
// cohomology of cotangential bundle on P^3:
//-------------------------------------------
ring R=0,(x,y,z,u),dp;
resolution T1=mres(maxideal(1),0);
module M=T1[3];
intvec v=2,2,2,2,2,2;
attrib(M,"isHomog",v);
intmat B=sheafCohBGG(M,-8,4);
B;
==> 189,120,70,36,15,4,0,0,0,0,-1,-1,-1,
==> -1,0,0,0,0,0,0,0,0,0,0,-1,-1,
==> -1,-1,0,0,0,0,0,0,1,0,0,0,-1,
==> -1,-1,-1,0,0,0,0,0,0,0,6,20,45
displayCohom(B,-8,4,nvars(R)-1);
==> -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4
==> ---------------------------------------------------------------------
==> 3: 189 120 70 36 15 4 - - - - * * *
==> 2: * - - - - - - - - - - * *
==> 1: * * - - - - - - 1 - - - *
==> 0: * * * - - - - - - - 6 20 45
==> ---------------------------------------------------------------------
==> chi: * * * -36 -15 -4 0 0 -1 0 * * *
|