Changeset 87e9bf in git


Ignore:
Timestamp:
Oct 13, 2023, 1:56:42 PM (7 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
f105c9ba5ed9101adf3c041b890544700a8465fc
Parents:
b372afc65fbe431a92b08b984413c00ad8a1cd0c
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2023-10-13 13:56:42+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2023-11-07 14:16:39+01:00
Message:
add sheafCoh_w to sheafcoh.lib
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/sheafcoh.lib

    rb372afc r87e9bf  
    11///////////////////////////////////////////////////////////////////////////
    2 version="version sheafcoh.lib 4.3.2.8 Okt_2023 "; // $Id$
     2version="version sheafcoh.lib 4.3.2.9 Oct_2023 "; // $Id$
    33category="Commutative Algebra";
    44info="
     
    1919 sheafCohBGG2(M,l,h);    cohomology of sheaf associated to coker(M), experimental version
    2020 sheafCoh(M,l,h);        cohomology of sheaf associated to coker(M)
     21 sheafCoh_w(M,l,h);      cohomology of coker(M) with given module weights
    2122 dimH(i,M,d);            compute h^i(F(d)), F sheaf associated to coker(M)
    2223 dimGradedPart()
     
    12501251         modules. If called with the additional parameter @code{\"sres\"},
    12511252         the @code{sres} command is used instead.
    1252 SEE ALSO: dimH, sheafCohBGG
     1253SEE ALSO: dimH, sheafCohBGG, sheafCoh_w
    12531254EXAMPLE: example sheafCoh; shows an example
    12541255"
     
    13131314  attrib(M,"isHomog",v);
    13141315  intmat B=sheafCoh(M,-6,2);
     1316  displayCohom(B,-6,2,nvars(R)-1);
     1317}
     1318
     1319proc sheafCoh_w(module M,int l,int h,intvec w, list #)
     1320"USAGE:   sheafCoh(M,l,h);    M module, l,h int, w intvec
     1321ASSUME:  @code{M} is graded by w, @code{h>=l}. The basering @code{S} has
     1322         @code{n+1} variables.
     1323RETURN:  intmat, cohomology of twists of the coherent sheaf F on P^n
     1324         associated to coker(M). The range of twists is determined by @code{l},
     1325         @code{h}.
     1326DISPLAY: The intmat can be displayed in a diagram of the following form:
     1327         with @code{displayCohom(A,l,h,nvars(r)-1);}@*
     1328  @format
     1329                l            l+1                      h
     1330  ----------------------------------------------------------
     1331      n:     h^n(F(l))    h^n(F(l+1))   ......    h^n(F(h))
     1332           ...............................................
     1333      1:     h^1(F(l))    h^1(F(l+1))   ......    h^1(F(h))
     1334      0:     h^0(F(l))    h^0(F(l+1))   ......    h^0(F(h))
     1335  ----------------------------------------------------------
     1336    chi:     chi(F(l))    chi(F(l+1))   ......    chi(F(h))
     1337  @end format
     1338         A @code{'-'} in the diagram refers to a zero entry.
     1339NOTE:    The procedure is based on local duality as described in [Eisenbud:
     1340         Computing cohomology. In Vasconcelos: Computational methods in
     1341         commutative algebra and algebraic geometry. Springer (1998)].@*
     1342         By default, the procedure uses @code{mres} to compute the Ext
     1343         modules. If called with the additional parameter @code{\"sres\"},
     1344         the @code{sres} command is used instead.
     1345SEE ALSO: dimH, sheafCohBGG, sheafCoh
     1346EXAMPLE: example sheafCoh; shows an example
     1347"
     1348{
     1349  attrib(M,"isHomog",w);
     1350  return(sheafCoh(M,l,h,#));
     1351}
     1352example
     1353{"EXAMPLE:";
     1354  echo = 2;
     1355  //
     1356  // cohomology of structure sheaf on P^4:
     1357  //-------------------------------------------
     1358  ring r=0,x(1..5),dp;
     1359  module M=0;
     1360  intmat A=sheafCoh_w(0,-7,2,intvec(0));
     1361  A;
     1362  displayCohom(A,-7,2,nvars(r)-1);
     1363  //
     1364  // cohomology of cotangential bundle on P^3:
     1365  //-------------------------------------------
     1366  ring R=0,(x,y,z,u),dp;
     1367  resolution T1=mres(maxideal(1),0);
     1368  module M=T1[3];
     1369  intvec v=2,2,2,2,2,2;
     1370  intmat B=sheafCoh_w(M,-6,2,v);
    13151371  displayCohom(B,-6,2,nvars(R)-1);
    13161372}
Note: See TracChangeset for help on using the changeset viewer.