quadratic formula and finding roots of polynomial equations