VU Math: Intro to Our Computer Systems

HOW  TO  USE  MATHEMATICA

[Rotating icosaheadron around Vandy leaf]

This web page is intended only as an introduction. Further information can be found at other websites devoted to Mathematica; a list of such sites is maintained by Wolfram.

What is Mathematica ?

Mathematica is a software system that enables you to perform numerical, symbolic and graphical computations in a unified manner. Complementing a copious amount of built-in functions is the Mathematica programming language, with which you can design your own functions to extend the capabilities of the system. Particular strengths of this versatile software lie in the symbolic manipulation of expressions, the display and animation of graphics, and the accessibility of most of mathematics' special functions already built into the system.

Running Mathematica

Version 2.2 of Mathematica runs on Atlas and Artemis. When logged into either of these servers from an X terminal, a graphical interface for Mathematica can be run by typing
atlas 7 %  mathematica &
Within this graphical interface, you can intermingle text, Mathematica programming commands and their output, graphics and animation in a single document or notebook. This interface also makes it easy to print your notebooks on one of the laser printers.

If you are not at a graphics terminal, you may still run Mathematica (but without the ability to see graphical output) by using the terminal interface, accessed by typing

atlas 8 %  math
This terminal interface may also be used from within an X window; any graphical output will be displayed in its own window, created at the time of output.

The Mathematica Programming Language

The best way to become familiar with the Mathematica language is to delve into a few examples. By typing in a few sample commands and modifying them, you will get a feel for the syntax of the programming language, and also learn some of the potential capabilities of Mathematica. Some example commands with a calculus flavor and one from spline theory are listed below with their output to get you started.
Two Things to Note Before Beginning:
Examples

Input Notes:
References and Online Help
The thick black hardcover Mathematica manual in the computer room is the definitive guide to the program. For a quick look at more capabilities of Mathematica in algebra, calculus, linear algebra, numerical math and beyond, you might browse the "Tour of Mathematica" section near the beginning. The command index in the back is immensely useful for reviewing what a given command does, and for finding more information and examples elsewhere in the manual.

Within Mathematica, typing  ?Foo  gives a brief description of command Foo and its syntax. If you are running the notebook interface for Mathematica, the online function browser can also be useful in this regard---just select Help in the top menu.

There are also many extensions to Mathematica which must be loaded into memory in separate packages before gaining access to the additional commands they contain. The Mathematica manual contains examples of several of these useful extensions. You might also browse the thick purple and white softcover Guide to Standard Mathematica Packages for more recent extensions, organized by content.

Including Mathematica Graphics Within Other Documents

See the TeX help page for more information about inserting Mathematica graphics in encapsulated PostScript format into your TeX files.

To insert the (non-animated) mathematica graphics into this webpage, I ran the terminal version of Mathematica from within an X window (on a color graphics workstation) and created GIF files from the resulting Mathematica graphics output windows using the "grab" feature of the nifty picture manipulation program xv. These GIF files can then be called by the corresponding HTML codes to display the pictures within a webpage. To see the xv manual, start up Netscape and enter this URL (which begins with "ftp" rather than the usual "http"):

ftp://username@atlas.math.vanderbilt.edu/usr/local/stow/xv/html/index.html
with "username" replaced by your username; you'll be prompted for your password.

The xv manual is also available (and better looking) in postscript; you can see it if you go to an X-Windows terminal and type

gs /usr/local/src/xv/docs/xvdocs.ps

Inserting animated graphics involves another step after the creation of the GIF files (one for each frame of animation). The Animate Page offers a free automated service that collates your GIF files into one animated GIF file which Netscape and other browsers can view (these animated GIF files are called by the corresponding HTML code just like any other picture file).


Version of July 17, 1997 by David Assaf. Modified slightly by webmaster.