El profesor se sorprenderá mucho al ver tu solución correcta😉
a*x^2 + b*x + c = 0
D = b^2 - 4 * a * c =
(-40)^2 - 4 * (-4) * (-114) = -224
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
____ I*\/ 14 x1 = -5 - -------- 2
____ I*\/ 14 x2 = -5 + -------- 2
x2 = -5 + sqrt(14)*i/2
suma
____ ____ I*\/ 14 I*\/ 14 -5 - -------- + -5 + -------- 2 2
=
-10
producto
/ ____\ / ____\ | I*\/ 14 | | I*\/ 14 | |-5 - --------|*|-5 + --------| \ 2 / \ 2 /
=
57/2
57/2
x1 = -5.0 - 1.87082869338697*i
x2 = -5.0 + 1.87082869338697*i
x2 = -5.0 + 1.87082869338697*i