1. Re: Matheval (was: Dos32Lib, Win32Lib)
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Jun 06, 2000
- 487 views
> From: Beaumont Furniss [snip] > > EU>> Are right brackets automatically appended now , or are these > EU>>seen as being unnecessary clutter. > > EU>I'm not sure what you mean here. > > when I entered an expression into eval.e , it returned > something like > this for the expression sin(x*(a*x+ , without the closing right > bracketts. > Hmm...I think you might be confusing matheval with David Cuny's eval.e. They're two separate packages. Matheval should return all parenthesis correctly (in fact, the pretty print function will probably add some parenthesis). > > I'm having some difficulty locating matheval > [snip] > > So where can I find the most recent version , I was unable > to locate > this on d.cunys website , certainly not within the more > recent versions of > dos32lib.* or win32lib.* . > Yup. Completely different. :) It's on the recent contributions page. In fact, I just sent an update to Rob, and I've also posted it to: http://members.xoom.com/matthewlewis/matheval.zip It's about 32K. I added a graphing feature, and polished up the parser to allow more flexible variable naming. > > > As you should be aware now , I uploaded this ; via email > to you ; a few > days ago. I understand , you might have numerous other > concerns at this > time , therefore you haven't evaluated this. > I did take a look at it yesterday (I suspect more reason for the lag is our different locations on the globe--I'm in California). It took a little bit to get it to work. Mainly the math.e part, since some of the functions have been defined since EU 1.5 (arcsin, etc). Very interesting, though. I like the way you evaluated the function over the range, although that approach is incompatible to matheval's way of doing things. Take a look at the new graphing routines. They seem to run fairly fast (at least on my PII 300), as long as you don't have too complicated a function, and not too many iterations to calculate (10000 goes pretty quickly). Matt Lewis