Initial program 40.6
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified40.6
\[\leadsto \color{blue}{\frac{b \cdot c - a \cdot d}{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt40.6
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied associate-/r*40.6
\[\leadsto \color{blue}{\frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
- Using strategy
rm Applied fma-udef40.6
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\color{blue}{d \cdot d + c \cdot c}}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied hypot-def40.6
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\color{blue}{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt40.6
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}}{\color{blue}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}}\]
Applied add-sqr-sqrt40.6
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{\mathsf{hypot}\left(d, c\right)} \cdot \sqrt{\mathsf{hypot}\left(d, c\right)}}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied *-un-lft-identity40.6
\[\leadsto \frac{\frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\sqrt{\mathsf{hypot}\left(d, c\right)} \cdot \sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied times-frac40.6
\[\leadsto \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied times-frac40.6
\[\leadsto \color{blue}{\frac{\frac{1}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}}\]
Simplified40.6
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Simplified29.7
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{c \cdot b - d \cdot a}{\mathsf{hypot}\left(d, c\right)}}\]
Taylor expanded around -inf 11.9
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\left(-1 \cdot b\right)}\]
Simplified11.9
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\left(-b\right)}\]
Initial program 20.5
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified20.5
\[\leadsto \color{blue}{\frac{b \cdot c - a \cdot d}{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt20.5
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied associate-/r*20.4
\[\leadsto \color{blue}{\frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
- Using strategy
rm Applied fma-udef20.4
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\color{blue}{d \cdot d + c \cdot c}}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied hypot-def20.4
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\color{blue}{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt20.6
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}}{\color{blue}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}}\]
Applied add-sqr-sqrt20.7
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{\mathsf{hypot}\left(d, c\right)} \cdot \sqrt{\mathsf{hypot}\left(d, c\right)}}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied *-un-lft-identity20.7
\[\leadsto \frac{\frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\sqrt{\mathsf{hypot}\left(d, c\right)} \cdot \sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied times-frac20.8
\[\leadsto \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied times-frac20.8
\[\leadsto \color{blue}{\frac{\frac{1}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}}\]
Simplified20.6
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Simplified12.9
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{c \cdot b - d \cdot a}{\mathsf{hypot}\left(d, c\right)}}\]
- Using strategy
rm Applied associate-*r/12.8
\[\leadsto \color{blue}{\frac{\frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \left(c \cdot b - d \cdot a\right)}{\mathsf{hypot}\left(d, c\right)}}\]
Simplified12.7
\[\leadsto \frac{\color{blue}{\frac{c \cdot b - d \cdot a}{\mathsf{hypot}\left(d, c\right)}}}{\mathsf{hypot}\left(d, c\right)}\]
Initial program 44.7
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified44.7
\[\leadsto \color{blue}{\frac{b \cdot c - a \cdot d}{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt44.7
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied associate-/r*44.7
\[\leadsto \color{blue}{\frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
- Using strategy
rm Applied fma-udef44.7
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\color{blue}{d \cdot d + c \cdot c}}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied hypot-def44.7
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\color{blue}{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt44.7
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}}{\color{blue}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}}\]
Applied add-sqr-sqrt44.7
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{\mathsf{hypot}\left(d, c\right)} \cdot \sqrt{\mathsf{hypot}\left(d, c\right)}}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied *-un-lft-identity44.7
\[\leadsto \frac{\frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\sqrt{\mathsf{hypot}\left(d, c\right)} \cdot \sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied times-frac44.7
\[\leadsto \frac{\color{blue}{\frac{1}{\sqrt{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Applied times-frac44.7
\[\leadsto \color{blue}{\frac{\frac{1}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}} \cdot \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}}\]
Simplified44.7
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{hypot}\left(d, c\right)}}}{\sqrt{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Simplified28.7
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{c \cdot b - d \cdot a}{\mathsf{hypot}\left(d, c\right)}}\]
Taylor expanded around inf 12.7
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{b}\]