Skip navigation
Brigham Young University
Math Department

Tropical Maple Code


Nathan Grigg has developed a Maple package that can graph, analyze, and otherwise manipulate tropical polynomials. Among other things, the package has procedures to:

  • Draw the corner locus (zero locus) of a polynomial
  • Draw the dual graph of a polynomial
  • Multiply and add polynomials
  • Compute the determinant of tropical matrices and the resultant of tropical polynomials

Current Version

The most current version of the tropical package was updated: April 2009

The package was written using Maple 10 and does not run on earlier Maple versions.

Using the code

To use the Maple code, download the above file. The read the file into Maple using the read command. Then load the Tropical package with the command with(Tropical). For example:

On a mac:
> read "/users/Bob/Desktop/tropical.txt";
> with(Tropical);

On a windows machine (note the double backslashes)
> read "C:\\Documents and Settings\\Bob\\tropical.txt";
> with(Tropical);

For more information about the procedures, see the read me file, or the Maple help pages for read and with.

Example Worksheets

Below are some sample worksheets if you would like to see some of the things that you can do with the package. They are available to download (as Maple 10 worksheets) or to view (as HTML). Note that if you download them, you will also need to have a copy of the tropical.txt file on your computer if you want to successfully edit or execute them.

Plotting.mw -- Demonstrates simple plotting procedures DownloadView
Resultant.mw -- Demonstrates use of the resulant command DownloadView

Math-related links

BYU-related links

Maintained by Mark Kempton.

Copyright © 2006-2007. Brigham Young University Mathematics Department. All Rights Reserved.