the thing is that I don't know how to create a symbolic varible in c++ and work with it. For example, make the program run a process that in the end outputs an equation like: x + 5. So, how do we create a symbolic varible like "x" and how do we make operations with it? For example, x + x = 2x. Or, x square time x to the power of 3 is equal to x to the power of 5.
But the thing is that in the program I have to make, there is no value for anything. I have to work strictly with the variable, as if I was doing algebra.
But the code must do the math without values known. I mean, the code must know that x + x = 2x for example. So, with a certain recurrent formula, the code must run a process that makes the algebra dividing, multiplying, substracting and adding equations. The result must also be an equation, without having substituted any values.
For example:
If the code must solve this formula: (x^2-1)/(x+1), he must output x - 1, without having substituted the variables with any values. That's why it has to work symbolically.