Ask Your Question

Revision history [back]

I am not an expert of polytopes, but I see that the documentation of P.polar() says that the "original vertices are translated so that their barycenter is at the origin".

I can confirm this by doing:

sage: Pcentred = P - P.center()
sage: Pcentred = - Pcentred           # I don't know why, but Sage .polar() method does this
sage: Pd = Polyhedron(ieqs=[vector([1]+v) for v in Pcentred.vertices_list()])
sage: Pd.vertices()
(A vertex at (12/7, 6/7, 6/7, 6/7, 6/7),
 A vertex at (0, 0, 0, 0, -6/7),
 A vertex at (-12/7, 0, 0, 0, 0),
 A vertex at (0, 0, 0, -6/7, 0),
 A vertex at (0, -6/7, 0, 0, 0),
 A vertex at (0, 0, -6/7, 0, 0))