next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Posets :: fPolynomial

fPolynomial -- computes the f-polynomial of a poset



The f-polynomial of $P$ is the polynomial such that the coefficient on $q^i$ is the number of chains of length $i$ in $P$.

The f-polynomial of the $n$ chain is $(q+1)^n$.

i1 : n = 5;
i2 : factor fPolynomial chain n

o2 = (q + 1)

o2 : Expression of class Product

See also

Ways to use fPolynomial :

For the programmer

The object fPolynomial is a method function with options.