Initial program 17.4
\[\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}
\]
Simplified17.4
\[\leadsto \color{blue}{\frac{x.im \cdot y.re - x.re \cdot y.im}{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Applied add-sqr-sqrt_binary6417.4
\[\leadsto \frac{x.im \cdot y.re - x.re \cdot y.im}{\color{blue}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)} \cdot \sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}}
\]
Applied *-un-lft-identity_binary6417.4
\[\leadsto \frac{\color{blue}{1 \cdot \left(x.im \cdot y.re - x.re \cdot y.im\right)}}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)} \cdot \sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Applied times-frac_binary6417.5
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}} \cdot \frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}}
\]
Simplified17.4
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Simplified12.4
\[\leadsto \frac{1}{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \color{blue}{\frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}
\]
Applied add-sqr-sqrt_binary6412.6
\[\leadsto \frac{1}{\color{blue}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied *-un-lft-identity_binary6412.6
\[\leadsto \frac{\color{blue}{1 \cdot 1}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied times-frac_binary6412.6
\[\leadsto \color{blue}{\left(\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}\right)} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied associate-*l*_binary6412.6
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \left(\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}\right)}
\]
Simplified12.6
\[\leadsto \frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \color{blue}{\frac{\frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}}
\]
Applied associate-*r/_binary6412.5
\[\leadsto \color{blue}{\frac{\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}}
\]
Initial program 25.3
\[\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}
\]
Simplified25.3
\[\leadsto \color{blue}{\frac{x.im \cdot y.re - x.re \cdot y.im}{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Applied add-sqr-sqrt_binary6425.3
\[\leadsto \frac{x.im \cdot y.re - x.re \cdot y.im}{\color{blue}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)} \cdot \sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}}
\]
Applied *-un-lft-identity_binary6425.3
\[\leadsto \frac{\color{blue}{1 \cdot \left(x.im \cdot y.re - x.re \cdot y.im\right)}}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)} \cdot \sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Applied times-frac_binary6425.3
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}} \cdot \frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}}
\]
Simplified25.3
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Simplified13.6
\[\leadsto \frac{1}{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \color{blue}{\frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}
\]
Applied add-sqr-sqrt_binary6413.8
\[\leadsto \frac{1}{\color{blue}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied *-un-lft-identity_binary6413.8
\[\leadsto \frac{\color{blue}{1 \cdot 1}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied times-frac_binary6413.8
\[\leadsto \color{blue}{\left(\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}\right)} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied associate-*l*_binary6413.8
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \left(\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}\right)}
\]
Simplified13.8
\[\leadsto \frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \color{blue}{\frac{\frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}}
\]
Applied frac-times_binary6413.7
\[\leadsto \color{blue}{\frac{1 \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}}
\]
Taylor expanded in y.re around inf 8.9
\[\leadsto \color{blue}{\frac{x.im}{y.re} - \frac{x.re \cdot y.im}{{y.re}^{2}}}
\]
Simplified10.7
\[\leadsto \color{blue}{\frac{x.im}{y.re} - \frac{x.re}{\frac{y.re \cdot y.re}{y.im}}}
\]
Initial program 17.8
\[\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}
\]
Simplified17.8
\[\leadsto \color{blue}{\frac{x.im \cdot y.re - x.re \cdot y.im}{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Applied add-sqr-sqrt_binary6417.8
\[\leadsto \frac{x.im \cdot y.re - x.re \cdot y.im}{\color{blue}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)} \cdot \sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}}
\]
Applied *-un-lft-identity_binary6417.8
\[\leadsto \frac{\color{blue}{1 \cdot \left(x.im \cdot y.re - x.re \cdot y.im\right)}}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)} \cdot \sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Applied times-frac_binary6417.8
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}} \cdot \frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}}
\]
Simplified17.8
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Simplified11.5
\[\leadsto \frac{1}{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \color{blue}{\frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}
\]
Applied add-sqr-sqrt_binary6411.7
\[\leadsto \frac{1}{\color{blue}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied *-un-lft-identity_binary6411.7
\[\leadsto \frac{\color{blue}{1 \cdot 1}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied times-frac_binary6411.8
\[\leadsto \color{blue}{\left(\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}\right)} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}
\]
Applied associate-*l*_binary6411.8
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \left(\frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}\right)}
\]
Simplified11.7
\[\leadsto \frac{1}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \color{blue}{\frac{\frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}}
\]
Applied frac-times_binary6411.6
\[\leadsto \color{blue}{\frac{1 \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \sqrt{\mathsf{hypot}\left(y.im, y.re\right)}}}
\]
Applied pow1/2_binary6411.6
\[\leadsto \frac{1 \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\sqrt{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \color{blue}{{\left(\mathsf{hypot}\left(y.im, y.re\right)\right)}^{0.5}}}
\]
Applied pow1/2_binary6411.6
\[\leadsto \frac{1 \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\color{blue}{{\left(\mathsf{hypot}\left(y.im, y.re\right)\right)}^{0.5}} \cdot {\left(\mathsf{hypot}\left(y.im, y.re\right)\right)}^{0.5}}
\]
Applied pow-sqr_binary6411.4
\[\leadsto \frac{1 \cdot \frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}{\color{blue}{{\left(\mathsf{hypot}\left(y.im, y.re\right)\right)}^{\left(2 \cdot 0.5\right)}}}
\]
Initial program 39.9
\[\frac{x.im \cdot y.re - x.re \cdot y.im}{y.re \cdot y.re + y.im \cdot y.im}
\]
Simplified39.9
\[\leadsto \color{blue}{\frac{x.im \cdot y.re - x.re \cdot y.im}{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Applied add-sqr-sqrt_binary6439.9
\[\leadsto \frac{x.im \cdot y.re - x.re \cdot y.im}{\color{blue}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)} \cdot \sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}}
\]
Applied *-un-lft-identity_binary6439.9
\[\leadsto \frac{\color{blue}{1 \cdot \left(x.im \cdot y.re - x.re \cdot y.im\right)}}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)} \cdot \sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Applied times-frac_binary6439.9
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}} \cdot \frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}}
\]
Simplified39.9
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(y.im, y.re\right)}} \cdot \frac{x.im \cdot y.re - x.re \cdot y.im}{\sqrt{\mathsf{fma}\left(y.re, y.re, y.im \cdot y.im\right)}}
\]
Simplified26.7
\[\leadsto \frac{1}{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \color{blue}{\frac{y.re \cdot x.im - x.re \cdot y.im}{\mathsf{hypot}\left(y.im, y.re\right)}}
\]
Taylor expanded in y.re around 0 14.0
\[\leadsto \frac{1}{\mathsf{hypot}\left(y.im, y.re\right)} \cdot \color{blue}{\left(\frac{y.re \cdot x.im}{y.im} - x.re\right)}
\]