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