Yes indeed, tropicalization = tropical variety of an ideal. For computing that, I do recommend installing gfan (even if you wanted to use it through our interface, you'd still need to install it separately). Singular should also have its own tropicalization functions soon, but I don't know if that is publicly available yet.
You can find the source and a manual here:
http://home.math.au.dk/jensen/software/gfan/gfan.html. Some Linux distributions have a gfan package, but that's often an old version, so I'd recommend trying to install the newest version 0.5 by hand.
Gfan can compute tropicalizations of arbitrary (homogeneous) ideals, though it may be slow if your example is large. If you only want the
set-theoretic intersection of your two tropical hypersurfaces, you can actually do that in polymake:
- Compute the two tropical hypersurfaces as described in the tutorial https://polymake.org/doku.php/tutorial/apps_tropical, e.g.:
Code: Select all
$h1 = new Hypersurface<Min>(POLYNOMIAL=>toTropicalPolynomial("min(a1+3a0,a2+3a0,4*a1+1)"));
$h2 = new Hypersurface<Min>(POLYNOMIAL=>toTropicalPolynomial("min(a1+a0,a2+a0,2*a2+1)"));
Note that you need to homogenize the tropical polynomials!
- Compute
Code: Select all
$s = set_theoretic_intersection($h1,$h2);
- It will tell you that it consists of a point and a half-line:
Code: Select all
print $s->VERTICES;
0 1 1
1 -1/3 -1/3
1 -1/2 -1
print $s->MAXIMAL_POLYTOPES;
{0 1}
{2}