
188 5 Mathematical Tools
reader may wish to check her installation for xMaxima. Additionally there is TeX-
macs
12
as a possible interface. TeXmacs is also a document preparation system in
its own right. A somewhat simpler alternative interface is wxMaxima,
13
which is
purely a graphical user interface for Maxima. The choice between these is left to the
reader. Each has its own merits and each is certainly very spartan compared to what
one has become used to from commercial interfaces. While wxMaxima has a con-
venient, well thought out graphical interface, producing, manipulating and saving
plots is perhaps easiest in xMaxima. The best mathematical output is provided by
TeXmacs, although its general purpose interface is not as user-friendly as the other
two. In the remainder of this chapter we will remain agnostic about the interface to
be used.
To reap maximum benefit from the rest of the section, we strongly urge the reader
to choose one installation of Maxima, to actually install it and familiarize herself
with the system as we progress through the examples to follow.
Before starting the description of how to use Maxima, it is worthwhile providing
a general overview of the software and how it is organized. Unlike the very polished
commercial products that the reader may be acquainted with, Maxima is the product
of an academic open source project. Its main focus is on substance and quality. Also,
it is born out of the more spartan world of UNIX where things are, to a large degree,
text-based and centered on the use of a command line interface. This might sound
like an antiquated approach to software but, in reality, it has its advantages, partic-
ularly once one is used to the concept and has overcome any fear of command-line
windows. In fact, the minimalism of simple interfaces has the advantage of focus-
ing the user on the task at hand, rather than distracting with unnecessary dialogues,
bells and whistles. More importantly, programs of this sort tend to be more stable
and faster than their more visually-appealing cousins.
An apparent drawback is that it appears to be more contrived to extract graphical
output from these programs. Maxima itself does not have its own graphical routines,
yet it is still possible to use it to produce plots and to use the plots in high-quality
documents such as scientific papers. To achieve this Maxima uses a third-party pro-
gram (also free) called Gnuplot.
14
This is a very powerful program in its own right
(and has been used to prepare many of the graphs in this book). In practice, when-
ever a curve is plotted from Maxima, the program produces a set of points that are
then (automatically) passed to Gnuplot, which in turn produces the plot window that
is shown. Gnuplot can also export images in different file formats. Depending on the
installation, this can include PDF, JPEG, GIF, and many others. In what follows, we
will always assume that the file output format is Postscript, which is the simplest for-
mat to use and is always available with Gnuplot. On MacOS X and Linux, display
of Postscript files is unproblematic. On other platforms this may be more difficult
so, as an alternative, the reader may like to choose PDF as the output format. The
Maxima documentation provides details.
12
http://www.texmacs.org.
13
http://wxmaxima.sourceforge.net.
14
http://www.gnuplot.info.