Singular Manual: chNum

| #### D.5.2.6 chNum Procedure from library `chern.lib` (see chern_lib). Usage: chNum(N, c); N integer, c list Return: list Purpose: computes the Chern numbers of a vector bundle with Chern classes c on a complex manifold (variety) of dimension N, the zeroes corresponding to the higher zero Chern classes are ignored Note: computes basically the partitions of N in summands not greater than the length of c Example:
    LIB "chern.lib";
    ring r = 0, (c(1..2)), dp;
    list l=c(1..2);
    // Let c(1) be a variable of degree 1, let c(2) be a variable of degree 2.
    // The monomials in c(1) and c(2) of weighted degree 5 are:
    print( chNum( 5, l ) );
    // Compare the result to the output of chNumbers(...):
    print( chNumbers(5, l) );

User manual for Singular version 4.3.2, 2023, generated by texi2html.