Mathematica Test Job
From UGP-Wiki
mathematica.m is an input file to test mathematica serial jobs. It looks like this:
Print []
Print ["The matrix x is:"]
x = {{1, 2, 3}, {14, 22, 11}, {17, 5, 8}}
Print []
Print ["The inverse of the matrix x is:"]
N[Inverse[x],8]
Print []
Print ["The matrix y is:"]
y = {{2, 4, 6}, { 1, 33, 25}, { 5, 12, 43}}
Print []
Print ["The inverse of the matrix y is:"]
N[Inverse[y],8]
Print []
Print ["The Dot product of x and y is:"]
N[Dot[x, Transpose[y]],8]
1000!
To test using this job:
- Use the Data Manager to copy it to the cluster on which you will run it.
- Select "Applications" under the "Job Services" tab.
- Select Mathematica under the cluster name from the frame on the left side of the page.
- To fill in the form:
- Enter the input file name mathematica.m in the text field labeled "Stdin:<" replacing /dev/null which appears there by default.
- If mathematica.m is not in your home directory, enter in the text field labeled "Directory:" either the full pathname of the directory containing mathematica.m or a path relatative to your home directory.
- Click the "Submit Job" button.
The results will be written to stdout.

