Changeset addf91 in git


Ignore:
Timestamp:
Nov 16, 2016, 5:00:33 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
cff7b64b4d12f3390c62da92777b8ebeaa828f74
Parents:
e09ceb1a13d66dc87c9c17bd158486e701335e88
Message:
schubert.lib: avoid dupl. names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/schubert.lib

    re09ceb raddf91  
    6565    quotSheaf(sheaf,sheaf)              make the quotient of two sheaves
    6666    addSheaf(sheaf,sheaf)               make the direct sum of two sheaves
    67     makeGraph(list,list)                create a graph from a list of vertices
     67    makeGraphVE(list,list)              create a graph from a list of vertices
    6868                                        and a list of edges
    69     printGraph(graph)                   print procedure for graphs
     69    printGraphG(graph)                   print procedure for graphs
    7070    moduliSpace(variety,int)            create a moduli space of stable maps as
    7171                                        an algebraic stack
     
    8989    sumofquotients(stack,list)          prepare a command for parallel
    9090                                        computation
    91     part(poly,int)                      compute a homogeneous component of a
     91    homog_part(poly,int)                compute a homogeneous component of a
    9292                                        polynomial.
    93     parts(poly,int,int)                 compute the sum of homogeneous
     93    homog_parts(poly,int,int)           compute the sum of homogeneous
    9494                                        components of a polynomial
    9595    logg(poly,int)                      compute Chern characters from total
     
    136136    system("install","sheaf","-",quotSheaf,2);
    137137    system("install","sheaf","^",symmetricPowerSheaf,2);
    138     system("install","graph","print",printGraph,1);
     138    system("install","graph","print",printGraphG,1);
    139139    system("install","stack","print",printStack,1);
    140140}
     
    951951////////////////////////////////////////////////////////////////////////////////
    952952
    953 proc printGraph(graph G)
    954 "USAGE:     printGraph(G); G graph
     953proc printGraphG(graph G)
     954"USAGE:     printGraphG(G); G graph
    955955ASSUME:     G is a graph.
    956956THEORY:     This is the print function used by Singular to print a graph.
    957957KEYWORDS:   graph
    958 EXAMPLE:    example printGraph; shows an example
     958EXAMPLE:    example printGraphG; shows an example
    959959"
    960960{
     
    965965    "EXAMPLE:"; echo=2;
    966966    ring r = 0,x,dp;
    967     graph G = makeGraph(list(list(0,1,list(0,1,2)),list(1,1,list(1,0,2))),
     967    graph G = makeGraphVE(list(list(0,1,list(0,1,2)),list(1,1,list(1,0,2))),
    968968    list(list(0,1,2)));
    969969    G;
    970970}
    971971
    972 proc makeGraph(list v, list e)
    973 "USAGE:     makeGraph(v,e); v list, e list
     972proc makeGraphVE(list v, list e)
     973"USAGE:     makeGraphVE(v,e); v list, e list
    974974ASSUME:     v is a list of vertices, e is a list of edges.
    975975RETURN:     graph with vertices v and edges e.
    976976THEORY:     Creates a graph from a list of vertices and edges.
    977977KEYWORDS:   graph
    978 EXAMPLE:    example makeGraph; shows an example
     978EXAMPLE:    example makeGraphVE; shows an example
    979979{
    980980    graph G;
     
    987987    "EXAMPLE:"; echo=2;
    988988    ring r = 0,x,dp;
    989     graph G = makeGraph(list(list(0,1,list(0,1,2)),list(1,1,list(1,0,2))),
     989    graph G = makeGraphVE(list(list(0,1,list(0,1,2)),list(1,1,list(1,0,2))),
    990990    list(list(0,1,2)));
    991991    G;
     
    15591559}
    15601560
    1561 proc part(poly f, int n)
    1562 "USAGE:     part(f,n); f poly, n int
     1561proc homog_part(poly f, int n)
     1562"USAGE:     homog_part(f,n); f poly, n int
    15631563RETURN:     poly
    15641564PURPOSE:    computing the homogeneous component of a polynomial.
    1565 EXAMPLE:    example part; shows examples
     1565EXAMPLE:    example homog_part; shows examples
    15661566"
    15671567{
     
    15791579    ring r = 0,(x,y,z),wp(1,2,3);
    15801580    poly f = 1+x+x2+x3+x4+y+y2+y3+z+z2+xy+xz+yz+xyz;
    1581     part(f,0);
    1582     part(f,1);
    1583     part(f,2);
    1584     part(f,3);
    1585     part(f,4);
    1586     part(f,5);
    1587     part(f,6);
    1588 }
    1589 
    1590 proc parts(poly f, int i, int j)
    1591 "USAGE:     parts(f,i,j); f poly, i int, j int
     1581    homog_part(f,0);
     1582    homog_part(f,1);
     1583    homog_part(f,2);
     1584    homog_part(f,3);
     1585    homog_part(f,4);
     1586    homog_part(f,5);
     1587    homog_part(f,6);
     1588}
     1589
     1590proc homog_parts(poly f, int i, int j)
     1591"USAGE:     homog_parts(f,i,j); f poly, i int, j int
    15921592RETURN:     poly
    15931593THEORY:     computing a polynomial which is the sum of the homogeneous
    15941594            components of a polynomial.
    1595 EXAMPLE:    example parts; shows examples
     1595EXAMPLE:    example homog_parts; shows examples
    15961596"
    15971597{
     
    16001600    for (k=i;k<=j;k++)
    16011601    {
    1602         p=p+part(f,k);
     1602        p=p+homog_part(f,k);
    16031603    }
    16041604    return (p);
     
    16091609    ring r = 0,(x,y,z),wp(1,2,3);
    16101610    poly f = 1+x+x2+x3+x4+y+y2+y3+z+z2+xy+xz+yz+xyz;
    1611     parts(f,2,4);
     1611    homog_parts(f,2,4);
    16121612}
    16131613
     
    16221622    int i,j,k,m;
    16231623    if (n==0) {p=0;}
    1624     if (n==1) {p=part(f,1);}
     1624    if (n==1) {p=homog_part(f,1);}
    16251625    else
    16261626    {
    1627         list l=-part(f,1);
     1627        list l=-homog_part(f,1);
    16281628        for (j=2;j<=n;j++)
    16291629        {
     
    16311631            for (k=1;k<j;k++)
    16321632            {
    1633                 q=q+part(f,k)*l[j-k];
     1633                q=q+homog_part(f,k)*l[j-k];
    16341634            }
    1635             q=-j*part(f,j)-q;
     1635            q=-j*homog_part(f,j)-q;
    16361636            l=insert(l,q,size(l));
    16371637            kill q;
     
    16701670            for (j=1;j<=i;j++)
    16711671            {
    1672                 q=q+factorial(j)*(-1)^(j-1)*l[i-j+1]*part(f,j)/i;
     1672                q=q+factorial(j)*(-1)^(j-1)*l[i-j+1]*homog_part(f,j)/i;
    16731673            }
    16741674            l=insert(l,q,size(l));
     
    16961696    for (i=0;i<=deg(f);i++)
    16971697    {
    1698         p=p+n^i*part(f,i);
     1698        p=p+n^i*homog_part(f,i);
    16991699    }
    17001700    return (p);
     
    17151715            for (j=1;j<=i;j++)
    17161716            {
    1717                 q=q+((-1)^(i-j))*parts(l[j]*adams(f,i-j+1),0,d)/i;
     1717                q=q+((-1)^(i-j))*homog_parts(l[j]*adams(f,i-j+1),0,d)/i;
    17181718            }
    17191719            l=insert(l,q,size(l));
     
    17331733        for (j=1;j<=n;j++)
    17341734        {
    1735             M[i,j] = part(f,p[i]+j-i);
     1735            M[i,j] = homog_part(f,p[i]+j-i);
    17361736        }
    17371737    }
     
    19731973    poly g = var(1)^r;
    19741974    int i;
    1975     for (i=1;i<=r;i++) {g=g+var(1)^(r-i)*part(c,i);}
     1975    for (i=1;i<=r;i++) {g=g+var(1)^(r-i)*homog_part(c,i);}
    19761976    A.relations = rels,g;
    19771977    poly u = 1 + var(1);
     
    21952195    setring R;
    21962196    poly f = S.ChernCharacter;
    2197     return (int(part(f,0)));
     2197    return (int(homog_part(f,0)));
    21982198}
    21992199example
     
    22492249"
    22502250{
    2251     return (part(totalChernClass(S),i));
     2251    return (homog_part(totalChernClass(S),i));
    22522252}
    22532253example
     
    23142314        int i,j;
    23152315        for (i=0;i<=d;i++) {t = t + (1-f)^i;}
    2316         for (j=0;j<=d;j++) {h = h + part(t,j);}
     2316        for (j=0;j<=d;j++) {h = h + homog_part(t,j);}
    23172317        return (reduce(h,rels));
    23182318    }
     
    23792379        S.currentVariety = V2;
    23802380        poly c = imap(R1,c1);
    2381         poly f = parts(c*c2,0,V2.dimension);
     2381        poly f = homog_parts(c*c2,0,V2.dimension);
    23822382        S.ChernCharacter = f;
    23832383        return (S);
     
    23882388        S.currentVariety = V1;
    23892389        poly c = imap(R2,c2);
    2390         poly f = parts(c1*c,0,V1.dimension);
     2390        poly f = homog_parts(c1*c,0,V1.dimension);
    23912391        S.ChernCharacter = f;
    23922392        return (S);
     
    24352435            for (j=1;j<=m;j++)
    24362436            {
    2437                 q = q + ((-1)^(j+1))*parts(w[j+1]*s[i-j+1],0,d);
     2437                q = q + ((-1)^(j+1))*homog_parts(w[j+1]*s[i-j+1],0,d);
    24382438            }
    24392439            s = insert(s,q,size(s));
Note: See TracChangeset for help on using the changeset viewer.