Solve quadratic equations by the quadratic formula