|
-
May 18th, 2000, 09:13 PM
#1
Thread Starter
Hyperactive Member
Has anyone ever written a function parser to do simple arithmetic? (obviously + - * / ^, maybe Sqr, log, ln, sin, cos, tan etc.)
It would have to handle nested parentheses and recognise numbers as well as variables.
(e.g. have a list of assignable variables like a-z, and then be able to type and evaluate a string such as:
((a+b)^c)*2.6 + 1
)
I've tried it before (in FORTRAN of all things) and its pretty hard....
Just curious...

Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|