|
-
Jun 23rd, 2001, 08:01 AM
#2
Fanatic Member
Stack, RPN...
Method 1 - Make your own evaluator engine...
You could parse the tokens from the infix string you want to evaluate, then convert them to RPN, and evaluate them against a stack.
Do a search on the forums for "Reverse Polish Notation", "Stack", "Calculators" etc.
Method 2 - Use MS Scripting control...
Use the Microsoft Scripting control... Do a search for it on the forums... "Scripting control"
You might want to search thr forum for the following key words as well: Expressions, Infix, Postifx, Evaluating...
Post back if you need more help.
Laterz
Digital-X-Treme
Contact me on MSN Messenger: [email protected]
[VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
/ (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]
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
|