Initial program 26.3
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified26.3
\[\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-sqrt26.3
\[\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-identity26.3
\[\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-frac26.3
\[\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)}}}\]
Simplified26.3
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(c, d\right)}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{\mathsf{fma}\left(c, c, d \cdot d\right)}}\]
Simplified17.0
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\]
- Using strategy
rm Applied div-sub17.0
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \color{blue}{\left(\frac{b \cdot c}{\mathsf{hypot}\left(c, d\right)} - \frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}\right)}\]
Simplified9.6
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\color{blue}{\frac{c}{\frac{\mathsf{hypot}\left(c, d\right)}{b}}} - \frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}\right)\]
- Using strategy
rm Applied add-cube-cbrt9.9
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\frac{c}{\frac{\mathsf{hypot}\left(c, d\right)}{b}} - \color{blue}{\left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right) \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}}\right)\]
Applied *-un-lft-identity9.9
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\frac{c}{\frac{\mathsf{hypot}\left(c, d\right)}{\color{blue}{1 \cdot b}}} - \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right) \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\]
Applied add-sqr-sqrt10.0
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\frac{c}{\frac{\color{blue}{\sqrt{\mathsf{hypot}\left(c, d\right)} \cdot \sqrt{\mathsf{hypot}\left(c, d\right)}}}{1 \cdot b}} - \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right) \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\]
Applied times-frac10.0
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\frac{c}{\color{blue}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{1} \cdot \frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{b}}} - \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right) \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\]
Applied add-cube-cbrt10.3
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\frac{\color{blue}{\left(\sqrt[3]{c} \cdot \sqrt[3]{c}\right) \cdot \sqrt[3]{c}}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{1} \cdot \frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{b}} - \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right) \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\]
Applied times-frac9.9
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\color{blue}{\frac{\sqrt[3]{c} \cdot \sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{1}} \cdot \frac{\sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{b}}} - \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right) \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\]
Applied prod-diff9.9
\[\leadsto \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \color{blue}{\left(\mathsf{fma}\left(\frac{\sqrt[3]{c} \cdot \sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{1}}, \frac{\sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{b}}, -\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\right) + \mathsf{fma}\left(-\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}, \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}, \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\right)\right)}\]
Applied distribute-lft-in9.9
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \mathsf{fma}\left(\frac{\sqrt[3]{c} \cdot \sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{1}}, \frac{\sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{b}}, -\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\right) + \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \mathsf{fma}\left(-\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}, \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}, \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\right)}\]
Simplified9.3
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\frac{\sqrt[3]{c} \cdot \sqrt[3]{c}}{\sqrt{\mathsf{hypot}\left(c, d\right)}}, \frac{\sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{b}}, \frac{d}{\mathsf{hypot}\left(c, d\right)} \cdot \left(-a\right)\right)}{\mathsf{hypot}\left(c, d\right)}} + \frac{1}{\mathsf{hypot}\left(c, d\right)} \cdot \mathsf{fma}\left(-\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}, \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}, \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \left(\sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}} \cdot \sqrt[3]{\frac{a \cdot d}{\mathsf{hypot}\left(c, d\right)}}\right)\right)\]
Simplified0.9
\[\leadsto \frac{\mathsf{fma}\left(\frac{\sqrt[3]{c} \cdot \sqrt[3]{c}}{\sqrt{\mathsf{hypot}\left(c, d\right)}}, \frac{\sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{b}}, \frac{d}{\mathsf{hypot}\left(c, d\right)} \cdot \left(-a\right)\right)}{\mathsf{hypot}\left(c, d\right)} + \color{blue}{\frac{\frac{d}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\left(-a\right) + a\right)}{\mathsf{hypot}\left(c, d\right)}}\]
Final simplification0.9
\[\leadsto \frac{\mathsf{fma}\left(\frac{\sqrt[3]{c} \cdot \sqrt[3]{c}}{\sqrt{\mathsf{hypot}\left(c, d\right)}}, \frac{\sqrt[3]{c}}{\frac{\sqrt{\mathsf{hypot}\left(c, d\right)}}{b}}, \frac{d}{\mathsf{hypot}\left(c, d\right)} \cdot \left(-a\right)\right)}{\mathsf{hypot}\left(c, d\right)} + \frac{\frac{d}{\mathsf{hypot}\left(c, d\right)} \cdot \left(\left(-a\right) + a\right)}{\mathsf{hypot}\left(c, d\right)}\]