Math equation parsing

Hello guys.I need your helps. I want to solve equation with file stream. For Example: 3x+5=9x-2
How can i do this?. This is a very hard problem for me.i need only your advice.

Thank you so much :)
This is a much harder problem then it seems, also depending on how complex equations you want to solve.

Check this link out, might help:

http://en.wikipedia.org/wiki/Root-finding_algorithm
i don't think you can do this in ten lines of code, it is very hard.
There are programs who can do that for you, like mathematica, maple...
Thanx for post. Yes thats quite hard. I don't want to solve Quadratic equation :D because that's hard for me..I must search something about this case. Maybe that be easy for example:
"3.x+=9.x-2 "

1.Get filename
2.Read a character on .txt file
3.And put on the stack
4.etc etc. but 'x' a problem for all student in math or in programming :)
Topic archived. No new replies allowed.