Wolfram Library Archive

All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

TMath: A Tcl/C++ Interface to Mathematica

Brian L. Evans
Organization: University of Texas
Department: Department of Electrical and Computer Engineering
URL: http://www.ece.utexas.edu/~bevans/
Steve X. Gu
Organization: Nortel
Old MathSource #

Revision date


TMath provides a reusable C++ interface to control multiple Mathematica processes through the MathLink protocol. Built on top of this C++ interface is an extension to the scripting language Tcl (Tool Command Language) that allows Tcl to control Mathematica processes and to evaluate Mathematica commands. TMath also provides a similar Tcl interface to Matlab so that Tcl can be used as a mechanism to pass information between Mathematica and Matlab. TMath works with either Mathematica 2.2 or 3.0.

TMath has been tested on several Unix architectures, but should compile and work on non-Unix platforms since it uses MathLink to communicate with Mathematica. The release includes all source code, as well as pre-compiled binaries for Solaris 2.5 and HP-UX 10.20 platforms. In order to compile the source code, you will need to have Tcl installed. The pre-compiled binaries do not require a Tcl installation.

TMath is based on an interface from Ptolemy to Mathematica via Tcl. Ptolemy is a software environment for simulating and generating code for signal processing and communications systems. For more information on Ptolemy and TMath, see http://ptolemy.eecs.berkeley.edu. Tcl is an embeddable scripting language that is freely distributable.

*Wolfram Technology > Linking Technology

C++, Tcl, Matlab, Scripting language, interface, object-oriented

README (16.3 KB) - Text file
tmath0.2.hppa.tar.Z (2.1 MB) - HP UX-10 binaries
tmath0.2.sol2.tar.Z (1.8 MB) - Solaris 2.4 binaries
tmath0.2.src.tar.Z (424.2 KB) - Source code