next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Polyhedra :: fVector

fVector -- computes the f-vector of a Cone, Polyhedron, Fan or PolyhedralComplex

Synopsis

Description

The i-th entry of the f-vector of P is the number of dimension i-1 faces of P, so it starts with the number vertices, has dim(P)+1 entries, and the last entry is 1 for P itself. It is the same for a Cone C.

i1 : P = cyclicPolytope(3,5)

o1 = P

o1 : Polyhedron
i2 : fVector P

o2 = {5, 9, 6, 1}

o2 : List

Ways to use fVector :

For the programmer

The object fVector is a method function.