solving TD6 (finding roots of ax2+bx+c)