Solve Equation For Theta