The teacher will be very surprised to see your correct solution 😉
a*x^2 + b*x + c = 0
D = b^2 - 4 * a * c =
(-4)^2 - 4 * (1) * (6) = -8
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
sum
___ ___ 2 - I*\/ 2 + 2 + I*\/ 2
=
4
product
/ ___\ / ___\ \2 - I*\/ 2 /*\2 + I*\/ 2 /
=
6
6
___ x1 = 2 - I*\/ 2
___ x2 = 2 + I*\/ 2
x2 = 2 + sqrt(2)*i
x1 = 2.0 - 1.4142135623731*i
x2 = 2.0 + 1.4142135623731*i
x2 = 2.0 + 1.4142135623731*i