have you considered the case of a = 0?

or when the solutions dont exist in R? eg the discriminant < 0?