User Guide

Any document content outside Maple T.A. sections (indicated by green
section markers) is ignored by the export process.
For more details, refer to the ?exporttoMapleTA help page.
10.5 Connectivity
Translating Maple Code To Other Programming
Languages
Code Generation
The CodeGeneration package is a collection of commands and subpackages
that enable the translation of Maple code to other programming languages.
Languages currently supported include C, Fortran77, Java, MATLAB®, and
Visual Basic®.
For details on Code Generation, refer to the ?CodeGeneration help page.
Accessing External Products from Maple
External Calling
External calling allows you to use compiled C, Fortran77, or Java code in
Maple. Functions written in these languages can be linked and used as if
they were Maple procedures. With external calling you can use pre-written
optimized algorithms without the need to translate them into Maple com-
mands. Access to the NAG library routines and other numerical algorithms
is built into Maple using the external calling mechanism.
External calling can also be applied to functions other than numerical al-
gorithms. Routines exist that accomplish a variety of non-mathematical tasks.
You can use these routines in Maple to extend its functionality. For example,
you can link to controlled hardware via a serial port or interface with another
program. The Database Integration Toolbox uses external calling to allow
you to query, create, and update databases in Maple. For more information,
visit http://www.maplesoft.com/products/toolboxes.
374 10 Input, Output, and Interacting with Other Products