Solución detallada
Tenemos la ecuación:
$$h = \sqrt{- \frac{a + b}{2} + \left(b^{2} + \left(a^{2} - 2 a b\right)\right)}$$
cambiamos:
$$h = \frac{\sqrt{4 a^{2} - 8 a b - 2 a + 4 b^{2} - 2 b}}{2}$$
Abrimos los paréntesis en el miembro derecho de la ecuación
h = sqrt-2*a/2+2*b/2+4*a/2+2/2+4*b/2+2/2+8*a*b/2
Sumamos los términos semejantes en el miembro derecho de la ecuación:
h = sqrt(-2*a - 2*b + 4*a^2 + 4*b^2 - 8*a*b)/2
Obtenemos la respuesta: h = sqrt(-2*a - 2*b + 4*a^2 + 4*b^2 - 8*a*b)/2
___________________________________________________________________________________________________________________________________________________ ___________________________________________________________________________________________________________________________________________________
/ 2 / / 2 2 2 2 \\ / 2 / / 2 2 2 2 \\
4 / 2 / 2 2 2 2 \ |atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/| 4 / 2 / 2 2 2 2 \ |atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/|
\/ (-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b)) + \-8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/ *cos|-------------------------------------------------------------------------------------------------------------------------------------------------| I*\/ (-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b)) + \-8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/ *sin|-------------------------------------------------------------------------------------------------------------------------------------------------|
\ 2 / \ 2 /
h1 = -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 2
$$h_{1} = \frac{i \sqrt[4]{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} \sin{\left(\frac{\operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2} \right)}}{2} + \frac{\sqrt[4]{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} \cos{\left(\frac{\operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2} \right)}}{2}$$
h1 = i*((8*re(a)*im(a) + 8*re(b)*im(b) - 2*im(a) - 2*im(b) - 8*im(a*b))^2 + (4*re(a)^2 - 2*re(a) + 4*re(b)^2 - 2*re(b) - 8*re(a*b) - 4*im(a)^2 - 4*im(b)^2)^2)^(1/4)*sin(atan2(8*re(a)*im(a) + 8*re(b)*im(b) - 2*im(a) - 2*im(b) - 8*im(a*b, 4*re(a)^2 - 2*re(a) + 4*re(b)^2 - 2*re(b) - 8*re(a*b) - 4*im(a)^2 - 4*im(b)^2)/2)/2 + ((8*re(a)*im(a) + 8*re(b)*im(b) - 2*im(a) - 2*im(b) - 8*im(a*b))^2 + (4*re(a)^2 - 2*re(a) + 4*re(b)^2 - 2*re(b) - 8*re(a*b) - 4*im(a)^2 - 4*im(b)^2)^2)^(1/4)*cos(atan2(8*re(a)*im(a) + 8*re(b)*im(b) - 2*im(a) - 2*im(b) - 8*im(a*b), 4*re(a)^2 - 2*re(a) + 4*re(b)^2 - 2*re(b) - 8*re(a*b) - 4*im(a)^2 - 4*im(b)^2)/2)/2)
Suma y producto de raíces
[src]
___________________________________________________________________________________________________________________________________________________ ___________________________________________________________________________________________________________________________________________________
/ 2 / / 2 2 2 2 \\ / 2 / / 2 2 2 2 \\
4 / 2 / 2 2 2 2 \ |atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/| 4 / 2 / 2 2 2 2 \ |atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/|
\/ (-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b)) + \-8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/ *cos|-------------------------------------------------------------------------------------------------------------------------------------------------| I*\/ (-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b)) + \-8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/ *sin|-------------------------------------------------------------------------------------------------------------------------------------------------|
\ 2 / \ 2 /
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 2
$$\frac{i \sqrt[4]{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} \sin{\left(\frac{\operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2} \right)}}{2} + \frac{\sqrt[4]{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} \cos{\left(\frac{\operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2} \right)}}{2}$$
___________________________________________________________________________________________________________________________________________________ ___________________________________________________________________________________________________________________________________________________
/ 2 / / 2 2 2 2 \\ / 2 / / 2 2 2 2 \\
4 / 2 / 2 2 2 2 \ |atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/| 4 / 2 / 2 2 2 2 \ |atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/|
\/ (-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b)) + \-8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/ *cos|-------------------------------------------------------------------------------------------------------------------------------------------------| I*\/ (-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b)) + \-8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/ *sin|-------------------------------------------------------------------------------------------------------------------------------------------------|
\ 2 / \ 2 /
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 2
$$\frac{i \sqrt[4]{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} \sin{\left(\frac{\operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2} \right)}}{2} + \frac{\sqrt[4]{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} \cos{\left(\frac{\operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2} \right)}}{2}$$
___________________________________________________________________________________________________________________________________________________ ___________________________________________________________________________________________________________________________________________________
/ 2 / / 2 2 2 2 \\ / 2 / / 2 2 2 2 \\
4 / 2 / 2 2 2 2 \ |atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/| 4 / 2 / 2 2 2 2 \ |atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/|
\/ (-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b)) + \-8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/ *cos|-------------------------------------------------------------------------------------------------------------------------------------------------| I*\/ (-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b)) + \-8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/ *sin|-------------------------------------------------------------------------------------------------------------------------------------------------|
\ 2 / \ 2 /
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 2
$$\frac{i \sqrt[4]{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} \sin{\left(\frac{\operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2} \right)}}{2} + \frac{\sqrt[4]{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} \cos{\left(\frac{\operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2} \right)}}{2}$$
/ 2 2 2 2 \
___________________________________________________________________________________________________________________________________________ I*atan2\-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im (a) - 4*im (b) - 2*re(a) - 2*re(b) + 4*re (a) + 4*re (b)/
/ 2 ---------------------------------------------------------------------------------------------------------------------------------------------------
___ 4 / 2 / 2 2 2 2 \ 2
\/ 2 *\/ (4*im(a*b) - 4*im(a)*re(a) - 4*im(b)*re(b) + im(a) + im(b)) + \- 2*re (a) - 2*re (b) + 2*im (a) + 2*im (b) + 4*re(a*b) + re(a) + re(b)/ *e
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2
$$\frac{\sqrt{2} \sqrt[4]{\left(- 4 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} - 4 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} + \operatorname{im}{\left(a\right)} + \operatorname{im}{\left(b\right)} + 4 \operatorname{im}{\left(a b\right)}\right)^{2} + \left(- 2 \left(\operatorname{re}{\left(a\right)}\right)^{2} + \operatorname{re}{\left(a\right)} - 2 \left(\operatorname{re}{\left(b\right)}\right)^{2} + \operatorname{re}{\left(b\right)} + 4 \operatorname{re}{\left(a b\right)} + 2 \left(\operatorname{im}{\left(a\right)}\right)^{2} + 2 \left(\operatorname{im}{\left(b\right)}\right)^{2}\right)^{2}} e^{\frac{i \operatorname{atan_{2}}{\left(8 \operatorname{re}{\left(a\right)} \operatorname{im}{\left(a\right)} + 8 \operatorname{re}{\left(b\right)} \operatorname{im}{\left(b\right)} - 2 \operatorname{im}{\left(a\right)} - 2 \operatorname{im}{\left(b\right)} - 8 \operatorname{im}{\left(a b\right)},4 \left(\operatorname{re}{\left(a\right)}\right)^{2} - 2 \operatorname{re}{\left(a\right)} + 4 \left(\operatorname{re}{\left(b\right)}\right)^{2} - 2 \operatorname{re}{\left(b\right)} - 8 \operatorname{re}{\left(a b\right)} - 4 \left(\operatorname{im}{\left(a\right)}\right)^{2} - 4 \left(\operatorname{im}{\left(b\right)}\right)^{2} \right)}}{2}}}{2}$$
sqrt(2)*((4*im(a*b) - 4*im(a)*re(a) - 4*im(b)*re(b) + im(a) + im(b))^2 + (-2*re(a)^2 - 2*re(b)^2 + 2*im(a)^2 + 2*im(b)^2 + 4*re(a*b) + re(a) + re(b))^2)^(1/4)*exp(i*atan2(-8*im(a*b) - 2*im(a) - 2*im(b) + 8*im(a)*re(a) + 8*im(b)*re(b), -8*re(a*b) - 4*im(a)^2 - 4*im(b)^2 - 2*re(a) - 2*re(b) + 4*re(a)^2 + 4*re(b)^2)/2)/2