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) * (-18) = 81
v1 = (-b + sqrt(D)) / (2*a)
v2 = (-b - sqrt(D)) / (2*a)
x1 = 1
log(6) pi*I x2 = ------ + ------ log(3) log(3)
x2 = log(6)/log(3) + i*pi/log(3)
suma
log(6) pi*I 1 + ------ + ------ log(3) log(3)
=
log(6) pi*I 1 + ------ + ------ log(3) log(3)
producto
log(6) pi*I ------ + ------ log(3) log(3)
=
pi*I + log(6) ------------- log(3)
(pi*i + log(6))/log(3)
x1 = 1.0
x2 = 1.63092975357146 + 2.85960086738013*i
x2 = 1.63092975357146 + 2.85960086738013*i