CompuServe Messages

#String->Expression?

    17-Jul-93 12:54:04
Fm: Simon DeDeo 72702,1024
To: Tom Nalevanko 76004,1525
I'm writing a program that integrates a function. The user has to be able to enter a complex expression, (cos(sin(x^(2^log(x)))) or something like that, and I'm too lazy to figure out an algorithm to analyze it. In BBC BASIC, you could write, S$="(cos(sin(x^(2^log(x))))" z=Eval(S$,x,3) And z would equal (cos(sin(3^(2^log(3))))