Example of a Maple Package - Maple Programming Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Applications and Example Worksheets : Language and System : examples/binarytree

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 (find all entries where the key is between a and b), or to print the sorted list of values.



Return to Index for Example Worksheets

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam