El profesor se sorprenderá mucho al ver tu solución correcta😉
a*v^2 + b*v + c = 0
D = b^2 - 4 * a * c =
(-3)^2 - 4 * (1) * (-40) = 169
v1 = (-b + sqrt(D)) / (2*a)
v2 = (-b - sqrt(D)) / (2*a)
x1 = 3
log(5) pi*I x2 = ------ + ------ log(2) log(2)
x2 = log(5)/log(2) + i*pi/log(2)
suma
log(5) pi*I 3 + ------ + ------ log(2) log(2)
=
log(5) pi*I 3 + ------ + ------ log(2) log(2)
producto
/log(5) pi*I \ 3*|------ + ------| \log(2) log(2)/
=
3*(pi*I + log(5)) ----------------- log(2)
3*(pi*i + log(5))/log(2)
x1 = 3.0
x2 = 2.32192809488736 + 4.53236014182719*i
x2 = 2.32192809488736 + 4.53236014182719*i