I have an equation which has been reduced to the form
eqn1 := f(x,y,z) = T;
Now I have another equation that involves T as a variable
eqn2 := g(T,x,y,z);
I want to replace T
with f(x)
in eqn2
. If I had eqn1
in the form
eqn1better := T = f(x,y,z);
Then the following command would do what I want.
algsubs(eqn1better, eqn2);
So how do I swap the left-hand side and the right-hand side of an equation to turn eqn1
into eqn1better
?