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