RE: matheval update

new topic     » goto parent     » topic index » view thread      » older message » newer message

> 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu