Macaulay2 » Documentation
Packages » LatticePolytopes :: toricDiv
next | previous | forward | backward | up | index | toc

toricDiv -- constructs the toric Weil divisor associated to a polytope

Synopsis

Description

toricDiv is a function. It returns a toric divisor corresponding to a polytope P on the toric variety associated to the normal fan of P.
i1 : toricDiv(hypercube(2))

o1 = D  + D  + D  + D
      0    1    2    3

o1 : ToricDivisor on normalToricVariety ({{-1, 0}, {1, 0}, {0, -1}, {0, 1}}, {{0, 2}, {0, 3}, {1, 2}, {1, 3}})

Ways to use toricDiv :

For the programmer

The object toricDiv is a method function.