I'm working on a little program to read mathematical expressions, solve the equations and print out the answers.

The problem is that it has to support variables.

Example:

a+2 = 3

and in...