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 * (2) * (5) = -39
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
____ 1 I*\/ 39 x1 = - - -------- 4 4
____ 1 I*\/ 39 x2 = - + -------- 4 4
x2 = 1/4 + sqrt(39)*i/4
sum
____ ____ 1 I*\/ 39 1 I*\/ 39 - - -------- + - + -------- 4 4 4 4
=
1/2
product
/ ____\ / ____\ |1 I*\/ 39 | |1 I*\/ 39 | |- - --------|*|- + --------| \4 4 / \4 4 /
=
5/2
5/2
x1 = 0.25 + 1.5612494995996*i
x2 = 0.25 - 1.5612494995996*i
x2 = 0.25 - 1.5612494995996*i