1. Re: Expression Evaluator
>Do you have any plan to develop "math expression evaluator" or,
>Could you send me some CORE codes of parsing algorithm for it?
<snip>
> hope this be possible,
It's quite possible.
I had hacked a fairly simple expression evaluator some time ago. It can be
found in Robert's 'Old Stuff' page:
>expression string: "sin(x)+sqrt(x**2+y**2)/18.5+exp(x*sqrt(y))"
>where, x and y are variables, which will be specified later by the user
The existing code there has a few limitations:
(1) variables must only be once character long (i.e.; 'X' is ok, 'XX' is
not). This is because the initial code used expressions such as 'xy'
instead of 'x*y'.
(2) there are no function calls, such as 'sin(x)', only unary operators
such as '+' and '-'.
I'll re-write it to include function calls. I hope to post it early next
week.
-- David Cuny
begin 600 Y vs X graphing.url
M;2]&:6QE<T5U+V=R87!H97(U+GII< `T!30%________- 7_______\T!30%
2________! ```"!,0@!L0$(`
`
end