Macaulay2 » Documentation
Packages » OldPolyhedra :: interiorPoint
next | previous | forward | backward | up | index | toc

interiorPoint -- computes a point in the relative interior of the Polyhedron

Synopsis

Description

interiorPoint takes the vertices of the Polyhedron and computes the sum multiplied by 1/n, where n is the number of vertices.
i1 : P = cyclicPolytope(3,5)

o1 = {ambient dimension => 3           }
      dimension of lineality space => 0
      dimension of polyhedron => 3
      number of facets => 6
      number of rays => 0
      number of vertices => 5

o1 : Polyhedron
i2 : interiorPoint P

o2 = | 2  |
     | 6  |
     | 20 |

              3       1
o2 : Matrix QQ  <-- QQ

Ways to use interiorPoint :

For the programmer

The object interiorPoint is a method function.