Initial program 12.9
\[\sqrt{0.5 \cdot \left(1 + \frac{x}{\sqrt{\left(4 \cdot p\right) \cdot p + x \cdot x}}\right)}\]
Simplified12.9
\[\leadsto \color{blue}{\sqrt{\left(\frac{x}{\sqrt{\mathsf{fma}\left(p \cdot 4, p, x \cdot x\right)}} + 1\right) \cdot 0.5}}\]
- Using strategy
rm Applied flip3-+12.9
\[\leadsto \sqrt{\color{blue}{\frac{{\left(\frac{x}{\sqrt{\mathsf{fma}\left(p \cdot 4, p, x \cdot x\right)}}\right)}^{3} + {1}^{3}}{\frac{x}{\sqrt{\mathsf{fma}\left(p \cdot 4, p, x \cdot x\right)}} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p \cdot 4, p, x \cdot x\right)}} + \left(1 \cdot 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p \cdot 4, p, x \cdot x\right)}} \cdot 1\right)}} \cdot 0.5}\]
Simplified12.9
\[\leadsto \sqrt{\frac{\color{blue}{\mathsf{fma}\left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}, \left(1 \cdot 1\right) \cdot 1\right)}}{\frac{x}{\sqrt{\mathsf{fma}\left(p \cdot 4, p, x \cdot x\right)}} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p \cdot 4, p, x \cdot x\right)}} + \left(1 \cdot 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p \cdot 4, p, x \cdot x\right)}} \cdot 1\right)} \cdot 0.5}\]
Simplified12.9
\[\leadsto \sqrt{\frac{\mathsf{fma}\left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}, \left(1 \cdot 1\right) \cdot 1\right)}{\color{blue}{\mathsf{fma}\left(1, 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)}} \cdot 0.5}\]
- Using strategy
rm Applied expm1-log1p-u12.9
\[\leadsto \sqrt{\frac{\mathsf{fma}\left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right)}, \left(1 \cdot 1\right) \cdot 1\right)}{\mathsf{fma}\left(1, 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)} \cdot 0.5}\]
- Using strategy
rm Applied fma-udef12.9
\[\leadsto \sqrt{\frac{\color{blue}{\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right) + \left(1 \cdot 1\right) \cdot 1}}{\mathsf{fma}\left(1, 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)} \cdot 0.5}\]
- Using strategy
rm Applied flip3-+12.9
\[\leadsto \sqrt{\frac{\color{blue}{\frac{{\left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right)\right)}^{3} + {\left(\left(1 \cdot 1\right) \cdot 1\right)}^{3}}{\left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right)\right) \cdot \left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right)\right) + \left(\left(\left(1 \cdot 1\right) \cdot 1\right) \cdot \left(\left(1 \cdot 1\right) \cdot 1\right) - \left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right)\right) \cdot \left(\left(1 \cdot 1\right) \cdot 1\right)\right)}}}{\mathsf{fma}\left(1, 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)} \cdot 0.5}\]
Simplified12.9
\[\leadsto \sqrt{\frac{\frac{\color{blue}{\mathsf{fma}\left(\left(\left(1 \cdot 1\right) \cdot 1\right) \cdot \left(\left(1 \cdot 1\right) \cdot 1\right), \left(1 \cdot 1\right) \cdot 1, \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right) \cdot \left(\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right) \cdot \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right)\right)\right)}}{\left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right)\right) \cdot \left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right)\right) + \left(\left(\left(1 \cdot 1\right) \cdot 1\right) \cdot \left(\left(1 \cdot 1\right) \cdot 1\right) - \left(\frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}} \cdot \mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)\right)\right) \cdot \left(\left(1 \cdot 1\right) \cdot 1\right)\right)}}{\mathsf{fma}\left(1, 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)} \cdot 0.5}\]
Simplified12.9
\[\leadsto \sqrt{\frac{\frac{\mathsf{fma}\left(\left(\left(1 \cdot 1\right) \cdot 1\right) \cdot \left(\left(1 \cdot 1\right) \cdot 1\right), \left(1 \cdot 1\right) \cdot 1, \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right) \cdot \left(\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right) \cdot \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right)\right)\right)}{\color{blue}{\mathsf{fma}\left(\left(1 \cdot 1\right) \cdot 1 - \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \left(1 \cdot 1\right) \cdot 1, \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right) \cdot \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right)\right)}}}{\mathsf{fma}\left(1, 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)} \cdot 0.5}\]
Final simplification12.9
\[\leadsto \sqrt{\frac{\frac{\mathsf{fma}\left(\left(\left(1 \cdot 1\right) \cdot 1\right) \cdot \left(\left(1 \cdot 1\right) \cdot 1\right), \left(1 \cdot 1\right) \cdot 1, \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right) \cdot \left(\left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right) \cdot \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right)\right)\right)}{\mathsf{fma}\left(\left(1 \cdot 1\right) \cdot 1 - \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \left(1 \cdot 1\right) \cdot 1, \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right) \cdot \left(\frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)} \cdot \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}\right)\right)}}{\mathsf{fma}\left(1, 1 - \frac{x}{\sqrt{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}}, \frac{x \cdot x}{\mathsf{fma}\left(p, 4 \cdot p, x \cdot x\right)}\right)} \cdot 0.5}\]