Initial program 25.6
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified25.6
\[\leadsto \color{blue}{\frac{\mathsf{fma}\left(-d, a, b \cdot c\right)}{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
- Using strategy
rm Applied add-sqr-sqrt25.6
\[\leadsto \frac{\mathsf{fma}\left(-d, a, b \cdot c\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-identity25.6
\[\leadsto \frac{\color{blue}{1 \cdot \mathsf{fma}\left(-d, a, b \cdot c\right)}}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)} \cdot \sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Applied times-frac25.7
\[\leadsto \color{blue}{\frac{1}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}} \cdot \frac{\mathsf{fma}\left(-d, a, b \cdot c\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}}\]
Simplified25.7
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)}} \cdot \frac{\mathsf{fma}\left(-d, a, b \cdot c\right)}{\sqrt{\mathsf{fma}\left(d, d, c \cdot c\right)}}\]
Simplified16.6
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\frac{b \cdot c - d \cdot a}{\mathsf{hypot}\left(d, c\right)}}\]
- Using strategy
rm Applied div-sub16.6
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\left(\frac{b \cdot c}{\mathsf{hypot}\left(d, c\right)} - \frac{d \cdot a}{\mathsf{hypot}\left(d, c\right)}\right)}\]
Simplified9.2
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \left(\frac{b \cdot c}{\mathsf{hypot}\left(d, c\right)} - \color{blue}{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)\]
- Using strategy
rm Applied add-cube-cbrt9.6
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \left(\frac{b \cdot c}{\mathsf{hypot}\left(d, c\right)} - \color{blue}{\left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right) \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}}\right)\]
Applied *-un-lft-identity9.6
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \left(\frac{b \cdot c}{\color{blue}{1 \cdot \mathsf{hypot}\left(d, c\right)}} - \left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right) \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)\]
Applied times-frac1.1
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \left(\color{blue}{\frac{b}{1} \cdot \frac{c}{\mathsf{hypot}\left(d, c\right)}} - \left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right) \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)\]
Applied prod-diff1.1
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \color{blue}{\left(\mathsf{fma}\left(\frac{b}{1}, \frac{c}{\mathsf{hypot}\left(d, c\right)}, -\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)\right) + \mathsf{fma}\left(-\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}, \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}, \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)\right)\right)}\]
Applied distribute-rgt-in1.1
\[\leadsto \color{blue}{\mathsf{fma}\left(\frac{b}{1}, \frac{c}{\mathsf{hypot}\left(d, c\right)}, -\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)\right) \cdot \frac{1}{\mathsf{hypot}\left(d, c\right)} + \mathsf{fma}\left(-\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}, \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}, \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)\right) \cdot \frac{1}{\mathsf{hypot}\left(d, c\right)}}\]
Simplified1.1
\[\leadsto \color{blue}{\frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \mathsf{fma}\left(b, \frac{c}{\mathsf{hypot}\left(d, c\right)}, -{\left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)}^{3}\right)} + \mathsf{fma}\left(-\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}, \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}, \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}} \cdot \sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)\right) \cdot \frac{1}{\mathsf{hypot}\left(d, c\right)}\]
Simplified1.1
\[\leadsto \frac{1}{\mathsf{hypot}\left(d, c\right)} \cdot \mathsf{fma}\left(b, \frac{c}{\mathsf{hypot}\left(d, c\right)}, -{\left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)}^{3}\right) + \color{blue}{\left(\left(-{\left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)}^{3}\right) + {\left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)}^{3}\right) \cdot \frac{1}{\mathsf{hypot}\left(d, c\right)}}\]
Final simplification1.1
\[\leadsto \left({\left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)}^{3} + \left(-{\left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)}^{3}\right)\right) \cdot \frac{1}{\mathsf{hypot}\left(d, c\right)} + \mathsf{fma}\left(b, \frac{c}{\mathsf{hypot}\left(d, c\right)}, -{\left(\sqrt[3]{\frac{a}{\frac{\mathsf{hypot}\left(d, c\right)}{d}}}\right)}^{3}\right) \cdot \frac{1}{\mathsf{hypot}\left(d, c\right)}\]