I can´t use an output solution from solve command as a variable:
(%i2) x:solve([eq1], [x]);
the correct answer must be Z=-y+d+c, but maxima gives x+d=-y+d+c, could anyone help me?
h: solve([eq1], [x]);
Reason: The solution you get is not a single value for x, but a list containing all the solutions, here assigned to the variable h. The list contains only one solution. You are interested in the right hand side of the first solution: rhs(first(h)). I assigned this to x1 in order to avoid confusion. If you add d to this you get what you want.
What you did was adding d to the list of solutions which added d to both sides of any solution contained in the list.
Your solution is working, thank you very much.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.