hi guys,

I wonder how to convert a string to mathematical equation so that my program can make use of the string as and C++ programming language mathematical equation to perfrom mathematical operations. Thanks you in advance.

Printable View

- 07-10-2005draggyConverting String to Math Equation
hi guys,

I wonder how to convert a string to mathematical equation so that my program can make use of the string as and C++ programming language mathematical equation to perfrom mathematical operations. Thanks you in advance. - 07-10-2005JoshR
what do you mean?

like if someone types in 3+4 into a string, then the program seperates the numbers and the operator then does the math?

Show us your progress. - 07-10-2005draggyQuote:

Originally Posted by**JoshR**

- 07-10-2005Rashakil Fol
It depends on what operators and functions you want to support. Would you want just the four basic binary operators, or would you want "unary" operators as well, as in sin 5 and 5 !

- 07-10-2005draggy
it should cover all the linear equation's needs operation susch as -+*/, sin, cos, tan, abs, .... etc if can whatever math functions provided by math.h

- 07-10-2005xErath
an example of what you need

http://www.brpreiss.com/books/opus5/html/page264.html

and a practical simple visualization

http://web.engr.oregonstate.edu/~min...pressTree.html

for more and more

http://www.google.com/search?hl=en&q...SION%2BTREE%22