Initial program 45.2
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}\]
Simplified45.2
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt45.2
\[\leadsto \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\color{blue}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied *-un-lft-identity45.2
\[\leadsto \frac{\color{blue}{1 \cdot \mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied times-frac45.2
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
- Using strategy
rm Applied *-un-lft-identity45.2
\[\leadsto \frac{1}{\sqrt{\color{blue}{1 \cdot \mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied sqrt-prod45.2
\[\leadsto \frac{1}{\color{blue}{\sqrt{1} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied add-sqr-sqrt45.2
\[\leadsto \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{\sqrt{1} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied times-frac45.2
\[\leadsto \color{blue}{\left(\frac{\sqrt{1}}{\sqrt{1}} \cdot \frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\right)} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied associate-*l*45.2
\[\leadsto \color{blue}{\frac{\sqrt{1}}{\sqrt{1}} \cdot \left(\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\right)}\]
Simplified30.3
\[\leadsto \frac{\sqrt{1}}{\sqrt{1}} \cdot \color{blue}{\frac{\frac{\sqrt{1}}{\mathsf{hypot}\left(d, c\right)} \cdot \mathsf{fma}\left(c, a, d \cdot b\right)}{\mathsf{hypot}\left(d, c\right)}}\]
Taylor expanded around -inf 13.2
\[\leadsto \frac{\sqrt{1}}{\sqrt{1}} \cdot \frac{\color{blue}{-1 \cdot b}}{\mathsf{hypot}\left(d, c\right)}\]
Simplified13.2
\[\leadsto \frac{\sqrt{1}}{\sqrt{1}} \cdot \frac{\color{blue}{-b}}{\mathsf{hypot}\left(d, c\right)}\]
Initial program 19.1
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}\]
Simplified19.1
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt19.1
\[\leadsto \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\color{blue}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied *-un-lft-identity19.1
\[\leadsto \frac{\color{blue}{1 \cdot \mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied times-frac19.1
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
- Using strategy
rm Applied *-un-lft-identity19.1
\[\leadsto \frac{1}{\sqrt{\color{blue}{1 \cdot \mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied sqrt-prod19.1
\[\leadsto \frac{1}{\color{blue}{\sqrt{1} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied add-sqr-sqrt19.1
\[\leadsto \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{\sqrt{1} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied times-frac19.1
\[\leadsto \color{blue}{\left(\frac{\sqrt{1}}{\sqrt{1}} \cdot \frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\right)} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied associate-*l*19.1
\[\leadsto \color{blue}{\frac{\sqrt{1}}{\sqrt{1}} \cdot \left(\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\right)}\]
Simplified12.2
\[\leadsto \frac{\sqrt{1}}{\sqrt{1}} \cdot \color{blue}{\frac{\frac{\sqrt{1}}{\mathsf{hypot}\left(d, c\right)} \cdot \mathsf{fma}\left(c, a, d \cdot b\right)}{\mathsf{hypot}\left(d, c\right)}}\]
- Using strategy
rm Applied associate-*l/12.1
\[\leadsto \frac{\sqrt{1}}{\sqrt{1}} \cdot \frac{\color{blue}{\frac{\sqrt{1} \cdot \mathsf{fma}\left(c, a, d \cdot b\right)}{\mathsf{hypot}\left(d, c\right)}}}{\mathsf{hypot}\left(d, c\right)}\]
Initial program 41.7
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}\]
Simplified41.7
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt41.7
\[\leadsto \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\color{blue}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied *-un-lft-identity41.7
\[\leadsto \frac{\color{blue}{1 \cdot \mathsf{fma}\left(a, c, b \cdot d\right)}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied times-frac41.7
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
- Using strategy
rm Applied *-un-lft-identity41.7
\[\leadsto \frac{1}{\sqrt{\color{blue}{1 \cdot \mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied sqrt-prod41.7
\[\leadsto \frac{1}{\color{blue}{\sqrt{1} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied add-sqr-sqrt41.7
\[\leadsto \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{\sqrt{1} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied times-frac41.7
\[\leadsto \color{blue}{\left(\frac{\sqrt{1}}{\sqrt{1}} \cdot \frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\right)} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied associate-*l*41.7
\[\leadsto \color{blue}{\frac{\sqrt{1}}{\sqrt{1}} \cdot \left(\frac{\sqrt{1}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(a, c, b \cdot d\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\right)}\]
Simplified26.5
\[\leadsto \frac{\sqrt{1}}{\sqrt{1}} \cdot \color{blue}{\frac{\frac{\sqrt{1}}{\mathsf{hypot}\left(d, c\right)} \cdot \mathsf{fma}\left(c, a, d \cdot b\right)}{\mathsf{hypot}\left(d, c\right)}}\]
Taylor expanded around inf 13.9
\[\leadsto \frac{\sqrt{1}}{\sqrt{1}} \cdot \frac{\color{blue}{b}}{\mathsf{hypot}\left(d, c\right)}\]