MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Announcing TMath: Tcl and C++ Interfaces to Mathematica

               -- Announcing the initial release of TMath --

            TMath 0.1: A Tcl Interface to MATLAB and Mathematica

                Brian L. Evans (1) and Steve X. Gu (2)

(1) Dept. of EECS, University of California, Berkeley, CA 94720-1770
E-mail: ble at, Web:

(2) NORTEL, 2305 Mission College Blvd., Santa Clara, CA. 95052-8173
E-mail: stevegu at, Web:

  with code from Joseph T. Buck, Wan-Teh Chang, Christopher X. Hylands,
 Edward A. Lee, David G. Messerschmitt, Jose Luis Pino, Kennard D. White.

           John Novak and Todd Gayley at Wolfram Research, Inc.


The TMath package is an extension to Tcl that allows Tcl to control
MATLAB and Mathematica processes and to evaluate MATLAB and Mathematica
commands, either through scripts or interactive sessions.  It provides

    1. two new Tcl commands matlab and mathematica,
    2. a framework for registering Tcl commands implemented as C++ methods,
    3. C++ interfaces for MATLAB and Mathematica, and
    4. C++ objects to control multiple MATLAB and Mathematica processes.

Tcl stands for "Tool Command Language".  Tcl is a scripting language
developed by Prof. John Ousterhout at U.C. Berkeley.  It is freely
distributable, runs on PCs, Macintoshes, and Unix platforms, is backed by
Sun Microsystems (see, and has a
news group comp.lang.tcl.  TMath, however, is designed for Unix systems.

TMath does not use pipes to control MATLAB and Mathematica processes.
Instead, it uses the MATLAB Engine interface and the Mathematica
MathLink protocol.  The Engine interface is based on memory-to-memory
writes and reads.  MathLink is based on exchanging data packets.

TMath will compile on the following Unix architectures:

    Sparc        Solaris 2.4, Solaris 2.5, and Sun OS 4.1.3
    SGI          Irix 5.3 and Irix 6.0
    HP           HPUX-9 and HPUX-10
    DEC Alpha    DEC Unix OSF 3.2
    IBM RS/6000  AIX 3.2.5
    PC           Linux Slackware 3.0, NetBSD 1.0, and FreeBSD 2.1-Stable

TMath is based on an implementation developed for the Ptolemy design
environment.  Ptolemy is a graphical block diagram environment for
specifying, simulating, and synthesizing signal processing and
communications systems.  TMath is a standalone program and framework,
and does not depend on Ptolemy.

TMath Web:
TMath FTP:

TMath source code and pre-built binaries for Sun OS 4 and Solaris 2.4
platforms are available on the ftp site as the files

tmath0.1.src.tar.Z   source code
tmath0.1.sun4.tar.Z  pre-built binaries for Sun OS 4.1.3
tmath0.1.sol2.tar.Z  pre-built binaries for Solaris 2.4

There is a README file on the FTP site.

Related Web sites and news groups:

MATLAB:          comp.soft-sys.matlab
Mathematica:            comp.soft-sys.math.mathematica
Ptolemy:  comp.soft-sys.ptolemy

Brian L. Evans, Ph.D.
211-105 Cory Hall
Dept. of EECS
University of California
Berkeley, CA  94720-1772

Voice: (510) 643-6686  E-mail: ble at
Fax:   (510) 642-2739  Web:
Brian L. Evans, Ph.D.
211-105 Cory Hall
Dept. of EECS
University of California


  • Prev by Date: Problem with condition in function definition !
  • Next by Date: Q: System of 2 Eqs w/ 2 Unknowns (Higher Degree).
  • Previous by thread: Re: Problem with condition in function definition !
  • Next by thread: Q: System of 2 Eqs w/ 2 Unknowns (Higher Degree).