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