Solved problem for displaying roots when one root is imaginary and the other is not