Solving Equations for Re and Im