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