home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mitech!gjc
- From: gjc@mitech.com (George J. Carrette)
- Newsgroups: sci.math.symbolic
- Subject: Re: Symbolic Algebra subroutine library?
- Message-ID: <2209@mitech.com>
- Date: 27 Jul 92 09:40:31 GMT
- References: <1992Jul24.224350.12931@cco.caltech.edu>
- Organization: Mitech Corporation, Concord MA
- Lines: 22
-
- In article <1992Jul24.224350.12931@cco.caltech.edu>, terry@wag.caltech.edu (Terry R. Coley) writes:
- > 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.
-
- I think your best bet is to look at the SCM scheme interpreter
- (written in C) and the algebra system that runs in it.
-
- Then, your API to the system is going to be
- a C subroutine to cause the initialization of the Scheme interpreter,
- and then pretty much from that point on you will be calling
- some kind of one-shot EVAL subroutine from C. Of course you will have
- to call "cons" and "intern" or at least "read-from-string" in order
- to create the expressions you want to evaluate.
-
- (algebraic-simplify '(+ a a))
-
-
- -gjc
-
-