Initial program 6.9
\[\left(x.re \cdot x.re - x.im \cdot x.im\right) \cdot x.im + \left(x.re \cdot x.im + x.im \cdot x.re\right) \cdot x.re\]
Applied simplify 6.9
\[\leadsto \color{blue}{x.im \cdot \left(\left(x.re \cdot x.re + x.re \cdot x.re\right) - \left({x.im}^2 - x.re \cdot x.re\right)\right)}\]
- Using strategy
rm
Applied sub-neg 6.9
\[\leadsto x.im \cdot \color{blue}{\left(\left(x.re \cdot x.re + x.re \cdot x.re\right) + \left(-\left({x.im}^2 - x.re \cdot x.re\right)\right)\right)}\]
Applied distribute-lft-in 6.9
\[\leadsto \color{blue}{x.im \cdot \left(x.re \cdot x.re + x.re \cdot x.re\right) + x.im \cdot \left(-\left({x.im}^2 - x.re \cdot x.re\right)\right)}\]
Applied simplify 6.9
\[\leadsto \color{blue}{\left(x.re + x.re\right) \cdot \left(x.re \cdot x.im\right)} + x.im \cdot \left(-\left({x.im}^2 - x.re \cdot x.re\right)\right)\]
- Using strategy
rm
Applied sub-neg 6.9
\[\leadsto \left(x.re + x.re\right) \cdot \left(x.re \cdot x.im\right) + x.im \cdot \left(-\color{blue}{\left({x.im}^2 + \left(-x.re \cdot x.re\right)\right)}\right)\]
Applied distribute-neg-in 6.9
\[\leadsto \left(x.re + x.re\right) \cdot \left(x.re \cdot x.im\right) + x.im \cdot \color{blue}{\left(\left(-{x.im}^2\right) + \left(-\left(-x.re \cdot x.re\right)\right)\right)}\]
Applied distribute-lft-in 6.9
\[\leadsto \left(x.re + x.re\right) \cdot \left(x.re \cdot x.im\right) + \color{blue}{\left(x.im \cdot \left(-{x.im}^2\right) + x.im \cdot \left(-\left(-x.re \cdot x.re\right)\right)\right)}\]
Applied simplify 0.2
\[\leadsto \left(x.re + x.re\right) \cdot \left(x.re \cdot x.im\right) + \left(x.im \cdot \left(-{x.im}^2\right) + \color{blue}{\left(x.re \cdot x.im\right) \cdot x.re}\right)\]
- Removed slow pow expressions