El profesor se sorprenderá mucho al ver tu solución correcta😉
a*x^2 + b*x + c = 0
D = b^2 - 4 * a * c =
(-7)^2 - 4 * (1) * (18) = -23
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
____ 7 I*\/ 23 x1 = - - -------- 2 2
____ 7 I*\/ 23 x2 = - + -------- 2 2
x2 = 7/2 + sqrt(23)*i/2
suma
____ ____ 7 I*\/ 23 7 I*\/ 23 - - -------- + - + -------- 2 2 2 2
=
7
producto
/ ____\ / ____\ |7 I*\/ 23 | |7 I*\/ 23 | |- - --------|*|- + --------| \2 2 / \2 2 /
=
18
18
x1 = 3.5 + 2.39791576165636*i
x2 = 3.5 - 2.39791576165636*i
x2 = 3.5 - 2.39791576165636*i