Initial program 25.7
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified25.7
\[\leadsto \color{blue}{\frac{b \cdot c - a \cdot d}{\mathsf{fma}\left(c, c, d \cdot d\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt25.7
\[\leadsto \frac{b \cdot c - a \cdot d}{\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-identity25.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(b \cdot c - a \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-frac25.7
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}}\]
Simplified25.7
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}\]
Simplified16.6
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}}\]
- Using strategy
rm Applied *-un-lft-identity16.6
\[\leadsto \frac{1}{\color{blue}{1 \cdot \mathsf{hypot}\left(d, c\right)}} \cdot \frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}\]
Applied add-sqr-sqrt16.6
\[\leadsto \frac{\color{blue}{\sqrt{1} \cdot \sqrt{1}}}{1 \cdot \mathsf{hypot}\left(d, c\right)} \cdot \frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}\]
Applied times-frac16.6
\[\leadsto \color{blue}{\left(\frac{\sqrt{1}}{1} \cdot \frac{\sqrt{1}}{\mathsf{hypot}\left(d, c\right)}\right)} \cdot \frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}\]
Applied associate-*l*16.6
\[\leadsto \color{blue}{\frac{\sqrt{1}}{1} \cdot \left(\frac{\sqrt{1}}{\mathsf{hypot}\left(d, c\right)} \cdot \frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}\right)}\]
Simplified16.5
\[\leadsto \frac{\sqrt{1}}{1} \cdot \color{blue}{\frac{\frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(d, c\right)}}{\mathsf{hypot}\left(d, c\right)}}\]
- Using strategy
rm Applied div-sub16.5
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\color{blue}{\frac{b \cdot c}{\mathsf{hypot}\left(d, c\right)} - \frac{a \cdot d}{\mathsf{hypot}\left(d, c\right)}}}{\mathsf{hypot}\left(d, c\right)}\]
Simplified9.1
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\color{blue}{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b} - \frac{a \cdot d}{\mathsf{hypot}\left(d, c\right)}}{\mathsf{hypot}\left(d, c\right)}\]
Simplified1.0
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - \color{blue}{\frac{d}{\frac{\mathsf{hypot}\left(d, c\right)}{a}}}}{\mathsf{hypot}\left(d, c\right)}\]
- Using strategy
rm Applied *-un-lft-identity1.0
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - \frac{d}{\frac{\mathsf{hypot}\left(d, c\right)}{\color{blue}{1 \cdot a}}}}{\mathsf{hypot}\left(d, c\right)}\]
Applied *-un-lft-identity1.0
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - \frac{d}{\frac{\color{blue}{1 \cdot \mathsf{hypot}\left(d, c\right)}}{1 \cdot a}}}{\mathsf{hypot}\left(d, c\right)}\]
Applied times-frac1.0
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - \frac{d}{\color{blue}{\frac{1}{1} \cdot \frac{\mathsf{hypot}\left(d, c\right)}{a}}}}{\mathsf{hypot}\left(d, c\right)}\]
Applied *-un-lft-identity1.0
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - \frac{\color{blue}{1 \cdot d}}{\frac{1}{1} \cdot \frac{\mathsf{hypot}\left(d, c\right)}{a}}}{\mathsf{hypot}\left(d, c\right)}\]
Applied times-frac1.0
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - \color{blue}{\frac{1}{\frac{1}{1}} \cdot \frac{d}{\frac{\mathsf{hypot}\left(d, c\right)}{a}}}}{\mathsf{hypot}\left(d, c\right)}\]
Simplified1.0
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - \color{blue}{1} \cdot \frac{d}{\frac{\mathsf{hypot}\left(d, c\right)}{a}}}{\mathsf{hypot}\left(d, c\right)}\]
Simplified0.5
\[\leadsto \frac{\sqrt{1}}{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - 1 \cdot \color{blue}{\left(\frac{d}{\mathsf{hypot}\left(d, c\right)} \cdot a\right)}}{\mathsf{hypot}\left(d, c\right)}\]
Final simplification0.5
\[\leadsto \sqrt{1} \cdot \frac{\frac{c}{\mathsf{hypot}\left(d, c\right)} \cdot b - \frac{d}{\mathsf{hypot}\left(d, c\right)} \cdot a}{\mathsf{hypot}\left(d, c\right)}\]