Code: Select all
$quadric = toTropicalPolynomial("max(2*x,1+x+y,2+2*y,1+y+z,2*z,4)");
$TQuadric = new Hypersurface<Max>(POLYNOMIAL=>$quadric);
$TQuadric->VISUAL;
What does this error mean?
Code: Select all
$quadric = toTropicalPolynomial("max(2*x,1+x+y,2+2*y,1+y+z,2*z,4)");
$TQuadric = new Hypersurface<Max>(POLYNOMIAL=>$quadric);
$TQuadric->VISUAL;
Code: Select all
$quadric = toTropicalPolynomial("max(2*x,w+x+y,2*w+2*y,w+y+z,2*z,4*w)");
Couldn't we detect such errors early enough, in toTropicalPolynomial() or in Hypersurface constructor, and produce a more comprehensible message?polymake uses homogeneous polynomials throughout.
Code: Select all
$F = toTropicalPolynomial("min(8+4w, 4+3w+x, 2+3w+y, 1+2w+2x, 2w+x+y, 1+2w+2y, 2+w+3x, w+2x+y, w+x+2y, 4+w+3y, 8+4x, 4+3x+y, 2x+2y, 2+x+3y, 4y)");
Code: Select all
$quadric = toTropicalPolynomial("max(2*x,1+x+y,2+2*y,1+y+z,2*z,4+2*w)");
$TQuadric = new Hypersurface<Max>(POLYNOMIAL=>$quadric);
$TQuadric->VISUAL;