Difference between revisions of "Maple 2016"

From HPC users
Jump to navigationJump to search
Line 38: Line 38:
   
   
  maple < example.mpl
  maple < example.mpl
The file "example.mpl" contains the following lines of code:
myseries := series(sin(x), x = 0, 10);
poly := convert(myseries, polynom);
plot(poly, x = -2*Pi .. 2*Pi, y = -3 .. 3);


== Documentation ==
== Documentation ==

Revision as of 16:33, 16 March 2017

Introduction

Maple is math software that combines the world’s most powerful math engine with an interface that makes it extremely easy to analyze, explore, visualize, and solve mathematical problems. With Maple, you aren’t forced to choose between mathematical power and usability, making it the ideal tool for both education and research.

Installed version

At the moment there are two versions of Maple installed:

  • 18
  • 2016

Using Maple

If you want to use Maple on the HPC cluster, you have to load the related module. Since there is more than one version installed, you also have to specify which version you would like to load:

module load maple/2016

If you want to load a different version, you will just need to replace the part after "/" with the desired version, e.g.

module load maple/18

Always remember: modules names are case-sensitive and trying to load maple with the command

module load MaPLe/2016 

will always result in a Lmod error!

Using Maple with the HPC cluster

Since there many people working with the HPC cluster, its important that everyone has an equal chance to do so. Therefore, every job should be processed by SLURM. For this reason, you have to create a jobscript for your tasks.

You can use the following example to build your own jobscript for a maple job. Keep in mind that you will most likley have to adjust the specified memory or the amount of nodes/tasks/cpus or time:

#!/bin/bash
               
#SBATCH --ntasks=1                  
#SBATCH --mem=2G                  
#SBATCH --time=0-2:00  
#SBATCH --job-name MAPLE-TEST              
#SBATCH --output=maple-test.%j.out        
#SBATCH --error=maple-test.%j.err          
 
module load maple/18 

maple < example.mpl

The file "example.mpl" contains the following lines of code:

myseries := series(sin(x), x = 0, 10);
poly := convert(myseries, polynom);
plot(poly, x = -2*Pi .. 2*Pi, y = -3 .. 3);

Documentation

Maple 18: User Manual

Maple 2016: User Manual

A PDF-viewer is required for both documentations.