home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math.symbolic
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!terry
- From: terry@wag.caltech.edu (Terry R. Coley)
- Subject: Symbolic Algebra subroutine library?
- Message-ID: <1992Jul24.224350.12931@cco.caltech.edu>
- Sender: terry@wag.caltech.edu
- Nntp-Posting-Host: vangogh.wag.caltech.edu
- Organization: California Institute of Technology, Pasadena, CA
- Date: Fri, 24 Jul 1992 22:43:50 GMT
- Lines: 34
-
-
- I would like to know if there is a symbolic algebra subroutine
- library suitable for linking to C/C++ programs. More specifically,
- I would like to use the algebraic manipulation capabilities of a
- package like Mathematica (as just one example) available from
- within a compiled and linked program. For example, the program
- might construct an expression like (a + b)(c + d) represented
- internally in some data structure (maybe a tree, maybe just a
- string). Then, a subroutine called with this expression as an
- argument would perform an operation on the expression and return
- the result in the same data structure type. For example, a routine
- called multiply might return ac + ad + bc + bd in the data structure.
-
- After watching this news group for a few weeks, it appears most
- symbolic work is done through front ends like that with Mathematica
- or Maple. Do either of these have an API (application programmer
- interface) for accessing their functionality?
-
- Some people have suggested shelling out a separate process to
- run Mathematica and then parse the resulting output. This is
- not acceptable for a variety of reasons, not the least of which
- are speed, portability, etc. My program will be generating
- hundreds of expressions, doing simplifications, and using the
- results. For now I have programmed the simple expression tree
- simplifications myself, including some simple derivatives. But
- as the expressions the program creates become more complex, I
- will not be able to compete/reproduce the functionality of
- good symbolic algebra packages. Therefore, I would like an API
- to such a package! Any suggestions?
-
- --
- - Terry
- terry@wag.caltech.edu 818-397-2724 818-585-0918 (FAX)
- Terry Coley, Caltech 139-74, Pasadena, CA 91125
-