Solves quadratic equations with real solutions