Initial program 0.0
\[x + y \cdot \left(z - x\right)\]
Simplified0.0
\[\leadsto \color{blue}{\mathsf{fma}\left(z - x, y, x\right)}\]
- Using strategy
rm Applied add-sqr-sqrt31.8
\[\leadsto \color{blue}{\sqrt{\mathsf{fma}\left(z - x, y, x\right)} \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt31.8
\[\leadsto \sqrt{\color{blue}{\sqrt{\mathsf{fma}\left(z - x, y, x\right)} \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}}} \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}\]
Applied sqrt-prod31.9
\[\leadsto \color{blue}{\left(\sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}\right)} \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}\]
- Using strategy
rm Applied add-sqr-sqrt31.9
\[\leadsto \left(\sqrt{\sqrt{\color{blue}{\sqrt{\mathsf{fma}\left(z - x, y, x\right)} \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}}}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}\right) \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}\]
Applied sqrt-prod31.9
\[\leadsto \left(\sqrt{\color{blue}{\sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}\right) \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}\]
Applied sqrt-prod32.0
\[\leadsto \left(\color{blue}{\left(\sqrt{\sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}} \cdot \sqrt{\sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}}\right)} \cdot \sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}\right) \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}\]
Applied associate-*l*32.0
\[\leadsto \color{blue}{\left(\sqrt{\sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}} \cdot \left(\sqrt{\sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}\right)\right)} \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}\]
Simplified32.1
\[\leadsto \left(\sqrt{\sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}} \cdot \color{blue}{{\left(\sqrt{\sqrt{\sqrt{\mathsf{fma}\left(z - x, y, x\right)}}}\right)}^{3}}\right) \cdot \sqrt{\mathsf{fma}\left(z - x, y, x\right)}\]
Taylor expanded around 0 0.0
\[\leadsto \color{blue}{\left(z \cdot y + x\right) - x \cdot y}\]
Simplified0.0
\[\leadsto \color{blue}{\mathsf{fma}\left(z, y, x\right) - x \cdot y}\]
Final simplification0.0
\[\leadsto \mathsf{fma}\left(z, y, x\right) - x \cdot y\]