Added a bit of code to check whether or not the quadratic has a complex answer.