Initial program 6.2
\[x \cdot x - \left(y \cdot 4\right) \cdot \left(z \cdot z - t\right)\]
Simplified6.2
\[\leadsto \color{blue}{\mathsf{fma}\left(x, x, \left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)\right)}\]
- Using strategy
rm Applied add-sqr-sqrt35.8
\[\leadsto \mathsf{fma}\left(x, x, \left(y \cdot 4\right) \cdot \left(\color{blue}{\sqrt{t} \cdot \sqrt{t}} - z \cdot z\right)\right)\]
Applied prod-diff35.8
\[\leadsto \mathsf{fma}\left(x, x, \left(y \cdot 4\right) \cdot \color{blue}{\left(\mathsf{fma}\left(\sqrt{t}, \sqrt{t}, -z \cdot z\right) + \mathsf{fma}\left(-z, z, z \cdot z\right)\right)}\right)\]
Applied distribute-lft-in35.8
\[\leadsto \mathsf{fma}\left(x, x, \color{blue}{\left(y \cdot 4\right) \cdot \mathsf{fma}\left(\sqrt{t}, \sqrt{t}, -z \cdot z\right) + \left(y \cdot 4\right) \cdot \mathsf{fma}\left(-z, z, z \cdot z\right)}\right)\]
Simplified6.2
\[\leadsto \mathsf{fma}\left(x, x, \color{blue}{\left(y \cdot 4\right) \cdot \left(t - z \cdot z\right)} + \left(y \cdot 4\right) \cdot \mathsf{fma}\left(-z, z, z \cdot z\right)\right)\]
- Using strategy
rm Applied sub-neg6.2
\[\leadsto \mathsf{fma}\left(x, x, \left(y \cdot 4\right) \cdot \color{blue}{\left(t + \left(-z \cdot z\right)\right)} + \left(y \cdot 4\right) \cdot \mathsf{fma}\left(-z, z, z \cdot z\right)\right)\]
Applied distribute-lft-in6.2
\[\leadsto \mathsf{fma}\left(x, x, \color{blue}{\left(\left(y \cdot 4\right) \cdot t + \left(y \cdot 4\right) \cdot \left(-z \cdot z\right)\right)} + \left(y \cdot 4\right) \cdot \mathsf{fma}\left(-z, z, z \cdot z\right)\right)\]
- Using strategy
rm Applied distribute-lft-neg-in6.2
\[\leadsto \mathsf{fma}\left(x, x, \left(\left(y \cdot 4\right) \cdot t + \left(y \cdot 4\right) \cdot \color{blue}{\left(\left(-z\right) \cdot z\right)}\right) + \left(y \cdot 4\right) \cdot \mathsf{fma}\left(-z, z, z \cdot z\right)\right)\]
Applied associate-*r*6.2
\[\leadsto \mathsf{fma}\left(x, x, \left(\left(y \cdot 4\right) \cdot t + \color{blue}{\left(\left(y \cdot 4\right) \cdot \left(-z\right)\right) \cdot z}\right) + \left(y \cdot 4\right) \cdot \mathsf{fma}\left(-z, z, z \cdot z\right)\right)\]
- Using strategy
rm Applied add-log-exp22.1
\[\leadsto \mathsf{fma}\left(x, x, \left(\left(y \cdot 4\right) \cdot t + \left(\left(y \cdot 4\right) \cdot \left(-z\right)\right) \cdot z\right) + \left(y \cdot 4\right) \cdot \color{blue}{\log \left(e^{\mathsf{fma}\left(-z, z, z \cdot z\right)}\right)}\right)\]
Simplified0.1
\[\leadsto \mathsf{fma}\left(x, x, \left(\left(y \cdot 4\right) \cdot t + \left(\left(y \cdot 4\right) \cdot \left(-z\right)\right) \cdot z\right) + \left(y \cdot 4\right) \cdot \log \color{blue}{1}\right)\]
Final simplification0.1
\[\leadsto \mathsf{fma}\left(x, x, \left(\left(y \cdot 4\right) \cdot t + \left(\left(y \cdot 4\right) \cdot \left(-z\right)\right) \cdot z\right) + \left(y \cdot 4\right) \cdot \log 1\right)\]