Maple is a mathematics software tool, which provides a mathematical computation engine with fully integrated numerics and symbolics, all accessible from a WYSIWYG technical document environment. Live math is expressed in its natural 2D typeset notation, linked to state-of-the-art graphics and animations with full document editing and presentation control.
To run Maple interactively, start the application in one of the following ways:
1. Using the command-prompt interface:
pcluster> maple
2. Using the GUI front-end with the Maple10 standard interface:
pcluster> xmaple &
3. Using the GUI front-end with the classical worksheet interface:
pcluster> xmaple -cw &
If you are planning to run Maple interactively for more than 10 minutes,
please run it on
an interactive node instead of the pcluster headnode.
Maple can also be run on the batch queue, which is recommended if you are planning to long jobs. Here is an example of how
this can be done:
1. Create a Maple program first.
Sample Maple program zeros.mws with Maple commands to
solve for the complex roots of a simple polynomial:
P:=z^5+5*z^4+11*z^3+8*z+22: zeros:=fsolve(P, z, complex): for i to nops([zeros]) do printf(`%f %f \n`, Re(zeros[i]), Im(zeros[i])) od: quit:
2. Create a script file to run the Maple program.
Sample script file runMaple.sh to run a Maple program
called zeros.mws and it saves the standard output of the execution in a file
called zeros.output:
#!/bin/csh
cd your_working_directory maple < zeros.mws > zeros.output exit
Then submit the sample script file runMaple.sh to the queue:
pcluster> ugsub T1-i1-t1-24h runMaple.sh
The queuename T1-i1-t1-24h used in this example can be replaced by other
one processor queuenames (that is, the maximum runtime of 24h can be changed).
Please refer to
Running Jobs on pcluster for more
information on how to submit batch jobs on pcluster.
Sample Maple program zeros.mws with Maple commands to solve for the complex roots of a simple polynomial: