Home Online Manual
Top
Back: normalToricRingFromBinomials
Forward: intclMonIdeal
FastBack:
FastForward:
Up: normaliz_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.4.20.4 ehrhartRing

Procedure from library normaliz.lib (see normaliz_lib).

Usage:
ehrhartRing(ideal I);

Return:
The exponent vectors of the leading monomials of the elements of I are considered as points of a lattice polytope P.
The Ehrhart ring of a (lattice) polytope P is the monoid algebra defined by the monoid of lattice points in the cone over the polytope P; see Bruns and Gubeladze, Polytopes, Rings, and K-theory, Springer 2009, pp. 228, 229.
The function returns a list of ideals:
(i) If the last ring variable is not used by the monomials, it is treated as the auxiliary variable of the Ehrhart ring. The function returns two ideals, the first containing the monomials representing all the lattice points of the polytope, the second containing the algebra generators of the Ehrhart ring over the coefficient field.
(ii) If the last ring variable is used by the monomials, the list returned contains only one ideal, namely the monomials representing the lattice points of the polytope.

The function returns the a list containing the input ideal I if one of the options supp, triang, volume, or hseries has been activated. However, in this case some numerical invariants are computed, and some other data may be contained in files that you can read into Singular (see showNuminvs, exportNuminvs).

Note:
A mathematical remark: the Ehrhart ring depends on the list of monomials given, and not only on the ideal they generate!

Example:
 
LIB "normaliz.lib";
ring R=37,(x,y,t),dp;
ideal J=x3,x2y,y3,xy2t7;
ehrhartRing(J);
==> [1]:
==>    _[1]=y3
==>    _[2]=xy2
==>    _[3]=xy2t
==>    _[4]=xy2t2
==>    _[5]=xy2t3
==>    _[6]=xy2t4
==>    _[7]=xy2t5
==>    _[8]=xy2t6
==>    _[9]=xy2t7
==>    _[10]=x2y
==>    _[11]=x2yt
==>    _[12]=x2yt2
==>    _[13]=x2yt3
==>    _[14]=x3
See also: intclMonIdeal; intclToricRing; normalToricRing.