# Cluster Job Example: Maple

## Maple

Long-running Maple jobs should be put in the queue. If you have a
Maple Worksheet (.mws extension) from the graphical versions of Maple,
you should re-save it as a Maple input file (.mpl extension) before
submitting your job. Maple jobs cannot currently be parallelized, so
make sure you include the "**#PBS -l nodes=1:ppn=1**" line in your qsub command file so that you only allocate one processor.

### Sample input file (findroots.mpl)

# Solve a simple polynomial equation f(x):=x^3+1.5*x; myroots:=solve(f(x)=27); # Save the results into a Maple input file for later post-processing. save myroots, "myroots.mpl";

### Sample qsub command file (mapledemo.sh)

#!/bin/bash # Example Maple job # Request 1 node with 1 free CPU core, since Maple can't parallelize. #PBS -l nodes=1:ppn=1 # Reserve 24 hours on selected cores #PBS -l walltime=24:00:00 # Give the job a descriptive name for emails (name must start with a letter) #PBS -N Finding_roots # Send mail to address given below when the job begins, ends normally, or aborts #PBS -m bea #PBS -M myusername@tntech.edu cd $PBS_O_WORKDIR maple -q findroots.mpl