home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16610 < prev    next >
Encoding:
Text File  |  1992-11-16  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news
  3. From: scs@adam.mit.edu (Steve Summit)
  4. Subject: Re: Want function to eval. math expression string...
  5. Message-ID: <1992Nov16.172156.9178@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: adam.mit.edu
  8. Organization: none, at the moment
  9. References: <bibhas.721411694@femto.engr.mun.ca>
  10. Date: Mon, 16 Nov 1992 17:21:56 GMT
  11. Lines: 24
  12.  
  13. In article <bibhas.721411694@femto.engr.mun.ca>, bibhas@pico.engr.mun.ca (Bibhas Bhattacharya) writes:
  14. > If you have a funtion which accepts a string of math expression and returns
  15. > the value for a supplied x-value, I would like to use it...
  16.  
  17. Since this question seems to come up from time to time, I have
  18. finally bundled up an expression evaluator of mine and posted it
  19. to alt.sources, under the Subject: line "med -- expression
  20. evaluator and stream-based math processor"; it is Message-ID:
  21. <1992Nov16.160145.7707@athena.mit.edu>.
  22.  
  23. The package is really in two parts.  The first is an expression
  24. parser and evaluator; because it seemed like a good idea at the
  25. time, the parser produces an intermediate representation (a
  26. simple RPN-like program) which is later executed.  The second
  27. part is "med," a stream-based math processor built upon the
  28. expression evaluator.  med isn't really an editor, but it acts a
  29. bit like sed in that it is often inserted in pipelines.
  30.  
  31. See the README file for more information.
  32.  
  33. The code is copyrighted but may be freely redistributed.
  34.  
  35.                     Steve Summit
  36.                     scs@adam.mit.edu
  37.