Matheval.e
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Mar 21, 2000
- 409 views
I just sent matheval.e to Rob to put up on the contribution page. With some interest lately regarding doing math in euphoria (NOT a f.p. post!), I thought this was a good time to send it out. I wrote it because the expression evaluators that have been written were not very advanced mathematically speaking (not that my little effort doesn't have a long way to go!), especially in the treatment of variables. In matheval, any value can be stored in a variable, including expressions of arbitrary size/complexity. It supports some VERY rudimentary calculus routines, algebraic solving methods, and matrix arithmetic (inversion routines use Art Adamson's matrix.e, found in the archives). Included are a coulpe of demos. One just parses and evaluates some expressions and spits out the results. The other uses win32lib (not included) to do regression. In fact, I plan to expand it into a scripting language, to enable fairly complex algorithms to be coded--OK, OK, it won't be the fastest thing around, but it's very flexible. Matthew W Lewis