ITS and UVa logos for printed output

Mathematica Support at UVa

Technical Computing, Calculation & Visualization

Mathematica is a fully integrated environment for technical computing, combining interactive calculation (both numeric and symbolic), visualization tools, and a complete programming environment. The Mathematica notebook interface provides an interactive technical document format which combines typeset mathematical expressions, formatted text, hypertext, and graphics, as well as fully customizable buttons and palettes. Mathematica also has a communications protocol named MathLink, which allows it to communicate and share data with other programs written in C, C++, and FORTRAN.

Table of Contents

Mathematica Availability

The University has an unlimited site license for Mathematica 8.0 on the following platforms: Linux, Windows (XP, Vista and Windows 7), and Mac. The site license has been expanded to allow students at UVa to install Mathematica on their personal computers. Students can obtain a copy of Mathematica 8.0 for their personal computers by logging into the ITS licensing database at web.virginia.edu/rescomp.

Mathematica 8.0 is also available for installation on University-owned computers, including Windows (XP, Vista and Windows 7), Linux, and Mac OS X platforms, and support is available from the Scholars' Lab in Alderman Library, 4th floor.

Faculty can get a copy of Mathematica for home use by contacting Wolfram Research directly. These copies of Mathematica are specifically meant to be used off-Grounds on non-University owned machines by faculty. To get copy of Mathematica for faculty home use, click here. You will need the University's Mathematica site license number which can be obtained from the ITS licensing database at web.virginia.edu/rescomp. A specific license number will accompany the home use license which is needed to register the standalone copy and request a password for operation.

Student and faculty copies of Mathematica will require getting a new password every year by June 10 to continue operation of your standalone copy.

Mathematica 8.0 is currently available on ITS's UNIX platforms using the path /uva/bin/mathematica. Mathematica 7.0 is available as /uva/bin/mathematica.old. Mathematica 7.0 will be available in ITS's Public Labs under Start/Programs/Computational Science/Mathematica.

You should also contact the Mathematica account representative if you want to purchase one of the separately licensed application packages.

  • Mathematica Built-in Functions
    The Mathematica system contains a large number of built–in functions. Follow the link above to learn more about the Mathematica Built-in Functions.
  • Mathematica Standard Add-on Packages
    Mathematica also includes a collection of standard add–on packages that define many additional functions in areas such as algebra, calculus, graphics, discrete and numerical mathematics, number theory, and statistics.

Getting Started with Mathematica

Access From Linux Platform

1. Mounting/Installing Mathematica

The filesystem /common should be mounted from the UNIX server jeeves.itc.virginia.edu to the Linux platform that you are logged into. In addition, the directory for the appropriate platform (e.g., /linux) should also be mounted from jeeves.itc and a symbolic link created from the uva subdirectory of the platform directory (e.g. /linux/i386/glibc2.2/uva) to /uva on the host machine. This is done by default on all ITS maintained UNIX machines. You can obtain a UNIX account on the RS/7.00 cluster blue.unix from the Accounts webpage. You should log into blue.unix using the X-server software Exceed (available in ITS Public Labs) to establish a graphical interface.

Mathematica can also be installed locally on a Linux machine instead of mounting the filesystem from the UNIX server, although the local copy would still have to communicate with the Mathematica license manager. The name of the license manager server can be found on the software licensing webpage (sign up for Mathematica for Unix/Linux). Users wishing to install Mathematica locally on the Linux platform should visit http://www.web.virginia.edu/rescomp to obtain the download. The disadvantages of a local installation on a Unix host as opposed to mounting Mathematica from the UNIX server are that it would use a large amount of local disk space and that periodic upgrades would require a reinstall locally whereas this is taken care of automatically by ITS on the mounted filesystem.

The following link provides installation instructions for the UNIX platform to access the network-based licenses. The installation requires the name of the license server running the Mathematica license manager, which can be found on the software licensing webpage. The Linux version of Mathematica is contained on the Windows/Mac installation CD.

2. Running Mathematica

(/uva/bin should be part of your PATH variable by default).

Start Mathematica notebook graphical user interface:

      mathematica

Start Mathematica text-based user interface:

      math

3. Running Mathematica remotely

If you are running Mathematica on a UNIX machine other than the one you originally logged onto (i.e. running it remotely through a telnet connection), you will have to reset the DISPLAY variable on the remote machine to that of the machine you are logged onto. You can determine the value of the local DISPLAY variable by typing,

      echo $DISPLAY

Then set your local machine to allow the display from the remote machine with the command,

      xhost +remote.dept.virginia.edu

Finally, once you are logged onto the remote machine on which you will run Mathematica, type,

      DISPLAY=machine.local.virginia.edu:0.0;export DISPLAY

where machine.local.virginia.edu is the value returned by the echo command.

Note: If you use the secure shell client slogin to connect to a remote machine, you do not have to reset the remote DISPLAY variable.

4. Running Mathematica in batch mode

Mathematica can be run in a non-interactive (batch) mode with an input file, e.g. math_script.m, containing the commands which would have been executed in the command window of Mathematica. To submit the job and then be able to logout, use the UNIX command,

        nohup math < math_script.m > output_file &

and output from the session will be written to a file named output_file. You can run a job at a specified time when the computer is less likely to be loaded down with other tasks using the Unix at command as follows:

        echo "math < math_script.m > output_file" | at hh:mm

and the Mathematica job will run at the specified time hh:mm, e.g. 01:00 for 1 am. If your job takes more than one hour of cpu time to run, it is strongly suggested that you apply for an account on the Linux cluster.

Access From Windows and Macs

The following links provide installation instructions for installing Mathematica 8.0 for both the Windows and Mac platforms (must be University owned) to access the network-based licenses. The installation instructions require the name of the license server running the Mathematica license manager, which can be found on the software licensing webpage (sign up for Mathematica for Windows or Mathematica for Macintosh).

The computer must be connected to the University network, either on grounds or through and ISP, to communicate with the license manager.

Alternatively, users may purchase X-server software (Exceed for Windows machines) so that they can log into a UNIX machine to run Mathematica from their PC or Mac and have it display properly on their machine.

Because the notebook interface requires special fonts, users will have to configure Exceed to access the ITS font server (this is already taken care of in ITS Public Labs) and is described on the Web page Exceed Configuration Instructions.

Getting Help with Mathematica

Information about a particular Mathematica command (e.g., Solve) can obtained by typing ? and then the command name at the Mathematica input prompt. More detailed information can be obtained by using ??.

    In[1]:= ??Solve
      Solve[eqns, vars] attempts to solve an equation or set of equations for the
      variables vars. Solve[eqns, vars, elims] attempts to solve the equations
      for vars, eliminating the variables elims.
    Attributes[Solve] = {Protected}
      Options[Solve] = {InverseFunctions -> Automatic, MakeRules -> False,
      Method -> 3, Mode -> Generic, Sort -> True, VerifySolutions -> Automatic,
      WorkingPrecision -> Infinity}
    In[2]:=

All Mathematica documentation is online and can be accessed through the Help Browser. The Help Browser can be invoked from the Help Menu of the Mathematica notebook interface. The Mathematica Book, Fourth Edition is available through the help browser as well as the manaul for the Standard Add-on Packages. The hardcopy manuals for Mathematica and the Standard Add-On Packages are available for reference from Research Support in the Scholar's Lab, Alderman Library. Additional copies of the manuals can be ordered through The Mathematica Bookstore.

Tutorial Documents

Getting Started
Wolfram Research's Getting Started Guide. Wolfram Research Mathematica Tutorials

Wolfram Research's self-guided, introductory Mathematica tutorials
These tutorials are also available in notebook format.

Many useful documents in Mathematica's notebook format (with .nb extension) are available on the Web and can be accessed from a Web browser by configuring the browser to use Mathematica as a helper application. Then the Web browser will start Mathematica automatically when you point to a Mathematica document. This assumes that Mathematica is available/installed on the same machine from which you are running the Web browser.

If users cannot find the answers to their questions in the online documentation, they can email their questions to ITS Research Computing Support.

Frequent Questions

Mathematica Examples

Other Mathematica Resources

Standards & Policy

University of Virginia
Information Technology Services
2015 Ivy Road
P.O. Box 400324
Charlottesville, Virginia, 22904-4324 USA

UVa Help Desk: 434-924-HELP (434-924-4357) • 4help@virginia.edu

Page Updated: 2011-07-01; © 2012 by the Rector and Visitors of the University of Virginia.

The information contained on the University of Virginia’s Department of Information Technology Services (ITS) website is provided as a public service with the understanding that ITS makes no representations or warranties, either expressed or implied, concerning the accuracy, completeness, reliability or suitability of the information, including warrantees of title, non-infringement of copyright or patent rights of others. These pages are expected to represent the University of Virginia community and the State of Virginia in a professional manner in accordance with the University of Virginia’s Computing Policies.