(6+-root(6^2-4*1*12))/2 -> As a result I get 3. When I insert it into the equation 3^2-6*3+12 I get 3 as a result, shouldn't it be 0 ?Most likely, you made an error in your application of the quadratic formula. Without seeing your work, we can't tell you where the error is though.