RE: matheval update
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Jun 23, 2003
- 521 views
> From: Al Getz [mailto:Xaxo at aol.com] > What is your basic method of handling algebraic equations? > > like: > > y=x*2*(z+9) OK, I've had a chance to plug this into matheval, and after parsing and simplifying, it stores the expression as: (Z * 2X) + 18X Computationally, this is not as efficient as it could be. I've just changed parseval.e to allow simplification to be turned off during parsing. You could alternatively do this to speed things up a little: v := 2x w := z+9 y := v*w I plan to post the updated code later today. Matt Lewis