Adding User-Defined Maple Functions

You can access user-defined functions written in the Maple language. While in a Maple session, save the function to a file filename.m. While in a Scientific Notebook document, from the Define submenu, choose Define Maple Name.

To access the function ``myfunc'' and name it ``M,'' respond to the dialog box as follows.

Note the forward slashes in the subdirectory specification for the location of the .m file. This syntax must be closely followed. It will be read in Maple as

This procedure defines in Scientific Notebook a function M(x) that behaves according to your Maple program. The guidelines at the beginning of this appendix for valid function and expression names apply to the Scientific Notebook names that can be entered in the Define Maple Name dialog box.

Maple functions accessed through the Define Maple Name dialog can be saved with and restored to a document with Save Definitions and Restore Definitions, as described earlier for Scientific Notebook–defined functions. The Maple functions accessed through the Define Maple Name dialog appear in the Show Definitions window, but they are not removed by Clear Definitions. To remove such a Maple function, select the Scientific Notebook name for the function and choose Maple + Define + Undefine.



Subsections