# Mathematica

**Description**

Mathematica is a system for technical computation, with numerical, symbolic, graphical, programming, and interfacing capabilities.

Availability

**Unix:** Mathematica is installed in Kellogg's Unix server, Skew, as well as SSCC and Quest.

**Desktop copies (Windows, Macintosh, Linux, Unix):** Desktop copies of Mathematica are available from NUIT.

**Vendor information**

Wolfram Research, Inc.

100 Trade Center Drive

Champaign, IL 61820-7237

Phone: (800) 965-3726

Support

Support

Wolfram Research Support Page.

**Running Mathematica**

*Interactive mode*- If you access Skew through Xwindows, you can type

and get a graphic interface.**mathematica** - Type

to see a terminal window interface. To exit, type**math****Quit**at the Mathematica prompt.

- If you access Skew through Xwindows, you can type

*Batch mode:***math <infile> outfile**

To run this batch job in the background, and continue to run after logout, type **nohup math <infile> outfile & **.

**AppendTo[$Echo, "stdout"] **

so that the input lines will also be included in the output file. Also, the input file should always end with an empty line. (This information appears on page 32 of Getting Started with Mathematica for X/Unix.) NOTE: A standard Mathematica notebook (.nb) that is saved in interactive mode cannot be directly used as an input to batch mode (as opposed to a plain text file with only Mathematica commands described above). To convert an interactive notebook into a valid batch input file, use the following procedure:
- Running the interactive mode, select all cells (CTRL-a) and set them as Initialization cells: Cell -> Cell Properties -> check "Initialization Cell."
- Save the notebook (File -> Save). It will prompt you to create a package; say "yes."
- Mathematica will create a file in the same directory with the same name and an extension ".m." Use that file as the batch input: e.g.,
**math -noinit -batchinput -batchoutput < infile.m > outfile.txt &**.

**Useful Links**