Solve quadratic equations using three methods