home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / math / symbolic / 2068 < prev    next >
Encoding:
Text File  |  1992-07-25  |  2.1 KB  |  46 lines

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