V = palpNVertices AL = palpNPoints AThe dual $P^* = \{ y : \langle x, y \rangle \ge -1 \text{ for all } x \in P \}$ is taken with respect to the origin. It is a lattice polytope exactly when $P$ is reflexive, and only then do these functions give an answer.
|
|
|
Since $P^{**} = P$, applying palpNVertices twice gives back the vertices of $P$, possibly in another order. In particular, given the vertices of a reflexive polytope in $N$, such as the rays of a fan, this is how to find its dual in $M$.
|
|
The result agrees with polar.
|
|
A polytope that is not reflexive gives null, even when the origin is its only interior lattice point, as for this simplex. Its dual, a rational polytope, is still available as polar convexHull M.
|
|
|
|
Like palpMPoints, palpNPoints slows down quickly with the dimension. palpNVertices stays fast.
The object palpNVertices is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/PALPInterface.m2:1743:0.