Initial program 35.5
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}
\]
Simplified35.5
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Applied add-sqr-sqrt_binary6435.5
\[\leadsto \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\color{blue}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)} \cdot \sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}
\]
Applied *-un-lft-identity_binary6435.5
\[\leadsto \frac{\color{blue}{1 \cdot \mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)} \cdot \sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Applied times-frac_binary6435.5
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}
\]
Simplified35.5
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Simplified23.8
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{\mathsf{fma}\left(d, b, c \cdot a\right)}{\mathsf{hypot}\left(d, c\right)}}
\]
Applied associate-*l/_binary6423.8
\[\leadsto \color{blue}{\frac{1 \cdot \frac{\mathsf{fma}\left(d, b, c \cdot a\right)}{\mathsf{hypot}\left(d, c\right)}}{\mathsf{hypot}\left(d, c\right)}}
\]
Simplified23.8
\[\leadsto \frac{\color{blue}{\frac{\mathsf{fma}\left(a, c, d \cdot b\right)}{\mathsf{hypot}\left(d, c\right)}}}{\mathsf{hypot}\left(d, c\right)}
\]
Taylor expanded in d around -inf 15.7
\[\leadsto \frac{\color{blue}{-\left(\frac{c \cdot a}{d} + b\right)}}{\mathsf{hypot}\left(d, c\right)}
\]
Simplified12.4
\[\leadsto \frac{\color{blue}{-\mathsf{fma}\left(\frac{c}{d}, a, b\right)}}{\mathsf{hypot}\left(d, c\right)}
\]
Initial program 16.0
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}
\]
Simplified16.0
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Applied add-sqr-sqrt_binary6416.0
\[\leadsto \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\color{blue}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)} \cdot \sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}
\]
Applied *-un-lft-identity_binary6416.0
\[\leadsto \frac{\color{blue}{1 \cdot \mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)} \cdot \sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Applied times-frac_binary6416.0
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}
\]
Simplified16.0
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Simplified10.8
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{\mathsf{fma}\left(d, b, c \cdot a\right)}{\mathsf{hypot}\left(d, c\right)}}
\]
Applied associate-*l/_binary6410.7
\[\leadsto \color{blue}{\frac{1 \cdot \frac{\mathsf{fma}\left(d, b, c \cdot a\right)}{\mathsf{hypot}\left(d, c\right)}}{\mathsf{hypot}\left(d, c\right)}}
\]
Simplified10.7
\[\leadsto \frac{\color{blue}{\frac{\mathsf{fma}\left(a, c, d \cdot b\right)}{\mathsf{hypot}\left(d, c\right)}}}{\mathsf{hypot}\left(d, c\right)}
\]
Applied pow1_binary6410.7
\[\leadsto \frac{\frac{\color{blue}{{\left(\mathsf{fma}\left(a, c, d \cdot b\right)\right)}^{1}}}{\mathsf{hypot}\left(d, c\right)}}{\mathsf{hypot}\left(d, c\right)}
\]
Initial program 24.1
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}
\]
Simplified24.1
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Applied add-sqr-sqrt_binary6424.1
\[\leadsto \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\color{blue}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)} \cdot \sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}
\]
Applied add-cube-cbrt_binary6424.6
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{\mathsf{fma}\left(a, c, b \cdot d\right)} \cdot \sqrt[3]{\mathsf{fma}\left(a, c, b \cdot d\right)}\right) \cdot \sqrt[3]{\mathsf{fma}\left(a, c, b \cdot d\right)}}}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)} \cdot \sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Applied times-frac_binary6424.6
\[\leadsto \color{blue}{\frac{\sqrt[3]{\mathsf{fma}\left(a, c, b \cdot d\right)} \cdot \sqrt[3]{\mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}} \cdot \frac{\sqrt[3]{\mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}
\]
Simplified24.5
\[\leadsto \color{blue}{\frac{\sqrt[3]{\mathsf{fma}\left(d, b, c \cdot a\right)} \cdot \sqrt[3]{\mathsf{fma}\left(d, b, c \cdot a\right)}}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{\sqrt[3]{\mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Simplified14.0
\[\leadsto \frac{\sqrt[3]{\mathsf{fma}\left(d, b, c \cdot a\right)} \cdot \sqrt[3]{\mathsf{fma}\left(d, b, c \cdot a\right)}}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{\sqrt[3]{\mathsf{fma}\left(d, b, c \cdot a\right)}}{\mathsf{hypot}\left(d, c\right)}}
\]
Taylor expanded in d around 0 9.8
\[\leadsto \color{blue}{\frac{a}{c} + \frac{d \cdot b}{{c}^{2}}}
\]
Simplified9.8
\[\leadsto \color{blue}{\frac{a}{c} + \frac{d \cdot b}{c \cdot c}}
\]
Initial program 40.4
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}
\]
Simplified40.4
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Applied add-sqr-sqrt_binary6440.4
\[\leadsto \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\color{blue}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)} \cdot \sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}
\]
Applied *-un-lft-identity_binary6440.4
\[\leadsto \frac{\color{blue}{1 \cdot \mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)} \cdot \sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Applied times-frac_binary6440.4
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}
\]
Simplified40.4
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}
\]
Simplified28.1
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{\mathsf{fma}\left(d, b, c \cdot a\right)}{\mathsf{hypot}\left(d, c\right)}}
\]
Applied associate-*l/_binary6428.0
\[\leadsto \color{blue}{\frac{1 \cdot \frac{\mathsf{fma}\left(d, b, c \cdot a\right)}{\mathsf{hypot}\left(d, c\right)}}{\mathsf{hypot}\left(d, c\right)}}
\]
Simplified28.0
\[\leadsto \frac{\color{blue}{\frac{\mathsf{fma}\left(a, c, d \cdot b\right)}{\mathsf{hypot}\left(d, c\right)}}}{\mathsf{hypot}\left(d, c\right)}
\]
Taylor expanded in c around 0 14.2
\[\leadsto \frac{\color{blue}{\frac{c \cdot a}{d} + b}}{\mathsf{hypot}\left(d, c\right)}
\]
Simplified10.4
\[\leadsto \frac{\color{blue}{\mathsf{fma}\left(\frac{c}{d}, a, b\right)}}{\mathsf{hypot}\left(d, c\right)}
\]