Mathematica Test Job

From UGP-Wiki

Jump to: navigation, search

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:

  1. Use the Data Manager to copy it to the cluster on which you will run it.
  2. Select "Applications" under the "Job Services" tab.
  3. Select Mathematica under the cluster name from the frame on the left side of the page.
  4. To fill in the form:
    1. Enter the input file name mathematica.m in the text field labeled "Stdin:<" replacing /dev/null which appears there by default.
    2. 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.
    3. Click the "Submit Job" button.

The results will be written to stdout.

Personal tools