El profesor se sorprenderá mucho al ver tu solución correcta😉
a*x^2 + b*x + c = 0
True
D = b^2 - 4 * a * c =
(0)^2 - 4 * (a) * (-c) = 4*a*c
x1 = (-b + sqrt(D)) / (2*a)
x2 = (-b - sqrt(D)) / (2*a)
/ / /c\ /c\\\ / / /c\ /c\\\ _________________ |atan2|im|-|, re|-||| _________________ |atan2|im|-|, re|-||| / 2/c\ 2/c\ | \ \a/ \a//| / 2/c\ 2/c\ | \ \a/ \a//| x1 = - 4 / im |-| + re |-| *cos|-------------------| - I*4 / im |-| + re |-| *sin|-------------------| \/ \a/ \a/ \ 2 / \/ \a/ \a/ \ 2 /
/ / /c\ /c\\\ / / /c\ /c\\\ _________________ |atan2|im|-|, re|-||| _________________ |atan2|im|-|, re|-||| / 2/c\ 2/c\ | \ \a/ \a//| / 2/c\ 2/c\ | \ \a/ \a//| x2 = 4 / im |-| + re |-| *cos|-------------------| + I*4 / im |-| + re |-| *sin|-------------------| \/ \a/ \a/ \ 2 / \/ \a/ \a/ \ 2 /
x2 = i*(re(c/a)^2 + im(c/a)^2)^(1/4)*sin(atan2(im(c/a, re(c/a))/2) + (re(c/a)^2 + im(c/a)^2)^(1/4)*cos(atan2(im(c/a), re(c/a))/2))
suma
/ / /c\ /c\\\ / / /c\ /c\\\ / / /c\ /c\\\ / / /c\ /c\\\ _________________ |atan2|im|-|, re|-||| _________________ |atan2|im|-|, re|-||| _________________ |atan2|im|-|, re|-||| _________________ |atan2|im|-|, re|-||| / 2/c\ 2/c\ | \ \a/ \a//| / 2/c\ 2/c\ | \ \a/ \a//| / 2/c\ 2/c\ | \ \a/ \a//| / 2/c\ 2/c\ | \ \a/ \a//| - 4 / im |-| + re |-| *cos|-------------------| - I*4 / im |-| + re |-| *sin|-------------------| + 4 / im |-| + re |-| *cos|-------------------| + I*4 / im |-| + re |-| *sin|-------------------| \/ \a/ \a/ \ 2 / \/ \a/ \a/ \ 2 / \/ \a/ \a/ \ 2 / \/ \a/ \a/ \ 2 /
=
0
producto
/ / / /c\ /c\\\ / / /c\ /c\\\\ / / / /c\ /c\\\ / / /c\ /c\\\\ | _________________ |atan2|im|-|, re|-||| _________________ |atan2|im|-|, re|-|||| | _________________ |atan2|im|-|, re|-||| _________________ |atan2|im|-|, re|-|||| | / 2/c\ 2/c\ | \ \a/ \a//| / 2/c\ 2/c\ | \ \a/ \a//|| | / 2/c\ 2/c\ | \ \a/ \a//| / 2/c\ 2/c\ | \ \a/ \a//|| |- 4 / im |-| + re |-| *cos|-------------------| - I*4 / im |-| + re |-| *sin|-------------------||*|4 / im |-| + re |-| *cos|-------------------| + I*4 / im |-| + re |-| *sin|-------------------|| \ \/ \a/ \a/ \ 2 / \/ \a/ \a/ \ 2 // \\/ \a/ \a/ \ 2 / \/ \a/ \a/ \ 2 //
=
/ /c\ /c\\ _________________ I*atan2|im|-|, re|-|| / 2/c\ 2/c\ \ \a/ \a// - / im |-| + re |-| *e \/ \a/ \a/
-sqrt(im(c/a)^2 + re(c/a)^2)*exp(i*atan2(im(c/a), re(c/a)))