home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / math / symbolic / 2088 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.2 KB

  1. Path: sparky!uunet!mitech!gjc
  2. From: gjc@mitech.com (George J. Carrette)
  3. Newsgroups: sci.math.symbolic
  4. Subject: Re: Symbolic Algebra subroutine library?
  5. Message-ID: <2209@mitech.com>
  6. Date: 27 Jul 92 09:40:31 GMT
  7. References: <1992Jul24.224350.12931@cco.caltech.edu>
  8. Organization: Mitech Corporation, Concord MA
  9. Lines: 22
  10.  
  11. In article <1992Jul24.224350.12931@cco.caltech.edu>, terry@wag.caltech.edu (Terry R. Coley) writes:
  12. > I would like to know if there is a symbolic algebra subroutine 
  13. > library suitable for linking to C/C++ programs.  More specifically,
  14. > I would like to use the algebraic manipulation capabilities of a
  15. > package like Mathematica (as just one example) available from
  16. > within a compiled and linked program.  
  17.  
  18. I think your best bet is to look at the SCM scheme interpreter
  19. (written in C) and the algebra system that runs in it. 
  20.  
  21. Then, your API to the system is going to be
  22. a C subroutine to cause the initialization of the Scheme interpreter,
  23. and then pretty much from that point on you will be calling
  24. some kind of one-shot EVAL subroutine from C. Of course you will have
  25. to call "cons" and "intern" or at least "read-from-string" in order
  26. to create the expressions you want to evaluate.
  27.  
  28.   (algebraic-simplify '(+ a a))
  29.  
  30.  
  31. -gjc
  32.  
  33.