|
D.13.1.57 newtonPolytope
Procedure from library gfan.lib (see gfan_lib).
- Usage:
- newtonPolytope(f); f poly
- Return:
- polytope, the convex hull of all exponent vectors of f
Example:
| LIB "gfan.lib";
ring r;
poly f=x+y+z;
polytope p=newtonPolytope(f);
p;
==> AMBIENT_DIM
==> 3
==> INEQUALITIES
==> 0,0,0,1,
==> 0,0,1,0,
==> 0,1,0,0
==> EQUATIONS
==> 1,-1,-1,-1
==>
|
|