> restart;
 

> read("/Volumes/NATHAN USB/Math/Maple/Tropical/tropical.txt");
 

`Last updated 27 Sept 2006` 

> with(Tropical);
 

Warning, the protected names add and resultant have been redefined and unprotected 

[Poly, SylvesterMatrix, add, bestrange, coef, coefs, deriv, det, dual, dualgraph, graph, isLCP, isect, makeparametric, makepoints, makepoly, minfunc, minmult, multiply, plotgraph, plotgraphs, resultan...
[Poly, SylvesterMatrix, add, bestrange, coef, coefs, deriv, det, dual, dualgraph, graph, isLCP, isect, makeparametric, makepoints, makepoly, minfunc, minmult, multiply, plotgraph, plotgraphs, resultan...
[Poly, SylvesterMatrix, add, bestrange, coef, coefs, deriv, det, dual, dualgraph, graph, isLCP, isect, makeparametric, makepoints, makepoly, minfunc, minmult, multiply, plotgraph, plotgraphs, resultan...
 

> f:=x^2+x*y-y^2+y*z+5*z^2;
 

(Typesetting:-mprintslash)([f := x^2+x*y-y^2+y*z+5*z^2], [x^2+x*y-y^2+y*z+5*z^2]) 

> plotgraph(f);
 

Plot 

> dualgraph(f);
 

Plot 

> g:=x^3+x*y*z-y^3+2*y^2*z+4*z^3;
 

(Typesetting:-mprintslash)([g := x^3+x*y*z-y^3+2*y^2*z+4*z^3], [x^3+x*y*z-y^3+2*y^2*z+4*z^3]) 

> plotgraph(g);
 

Plot 

> dualgraph(g);
 

Plot 

> SylvesterMatrix(f,g,x);
 

(Typesetting:-mprintslash)([Matrix([[0, y, 5*z^2-y^2+y*z, infinity, infinity], [infinity, 0, y, 5*z^2-y^2+y*z, infinity], [infinity, infinity, 0, y, 5*z^2-y^2+y*z], [0, infinity, y*z, 4*z^3-y^3+2*y^2*... 

> resultant(f,g,x);
 

8*z^6+y^3*z^3+4*y^2*z^4-3*y^6-2*y^5*z-y^4*z^2+9*y*z^5 

> SylvesterMatrix(f,g,y);
 

(Typesetting:-mprintslash)([Matrix([[-1, x+z, x^2+5*z^2, infinity, infinity], [infinity, -1, x+z, x^2+5*z^2, infinity], [infinity, infinity, -1, x+z, x^2+5*z^2], [-1, 2*z, x*z, x^3+4*z^3, infinity], [... 

> resultant(f,g,y);
 

-3*x^6-x^3*z^3+3*z^6-2*x^5*z+2*x^2*z^4-2*x^4*z^2+2*x*z^5