Example Worksheet - Creating a Maple Package - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : General Information : Example Worksheet - Creating a Maple Package

Example of a Maple Package

This example briefly introduces all of the concepts required to add your own package to Maple. In particular, the following topics are covered:

• 

 using unevaluated function calls to represent data structures

• 

 adding your own type procedures

• 

 customizing the printing of data structures represented with function calls

• 

 loading your package routines "on demand"

• 

 creating your own repository

• 

 creating the package module

• 

 updating the help system


To demonstrate these techniques, we will construct a Maple implementation of a simple dictionary structure that uses binary trees. This structure allows the insertion, deletion, and lookup of numeric keys and associated values. It could easily be extended to allow range queries or to print the sorted list of values.

restart;

 

Return to Index for Example Worksheets