Mathematica

Mathematica is a fully integrated technical computing system, providing the user with everything from simple calculator operations to large-scale programming and interactive document preparation.

General Notes for Running Mathematica at CTC
  • Interactive access to Mathematica at CTC is only available in the collaboratory.
  • The Mathematica software on the compute nodes must be run in command line mode only.
    • To run in command line mode, the user creates an Mathematica script file which lists the Mathematica commands that need to be carried out. The usual file extension for Mathematica script files is .m (though you can use another extension if desired).
    • Before running Mathematica, users must execute the setup file by issuing the command: call setup_mathematica.bat
      This sets the PATH to include the Mathematica directory.
    • Then to run Mathematica, use math.exe. Redirect the standard input and output to files; e.g., math.exe < input.m > outputfile
Sample Batch Command File
 
Here is a sample batch file that you can copy and modify. You may also view an in-depth explanation of the sample batch file.
 
In addition to modifying the xml elements in the sample batch file, users will need to set some variables.
Variable List:   
 
Variable
Description
Example:
ROOTDIR
 
the H: directory where the Mathematica script file (in_file) and any necessary data files exist.
set ROOTDIR=\\tc.cornell.edu\users\%USERNAME%\mathematica
OUTDIR
 
the H: directory where the Mathematica output will be written.
set OUTDIR=%ROOTDIR%\output
IN_FILE
the name of the Mathematica script file
set IN_FILE=input.m
OUT_FILE
the output file from Mathematica
set OUT_FILE=outputfile

For details about how to submit batch jobs, see the Batch System documentation.
 
Online Documentation
Online help for Matlab is available through the Matlab GUI by clicking on Help. Also, Wolfram Research provides Mathematica documentation on their website.

Mathematica Web Pages
Wolfram Research home page http://www.wolfram.com/
Mathematica product page www.wolfram.com/products/mathematica/