- Split input into 2 regimes
if d < 1.6480088990828942e+161
Initial program 23.2
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified23.2
\[\leadsto \color{blue}{\frac{b \cdot c - a \cdot d}{(d \cdot d + \left(c \cdot c\right))_*}}\]
- Using strategy
rm Applied add-sqr-sqrt23.2
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*} \cdot \sqrt{(d \cdot d + \left(c \cdot c\right))_*}}}\]
Applied associate-/r*23.1
\[\leadsto \color{blue}{\frac{\frac{b \cdot c - a \cdot d}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}}\]
- Using strategy
rm Applied fma-udef23.1
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\color{blue}{d \cdot d + c \cdot c}}}}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}\]
Applied hypot-def23.1
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{d^2 + c^2}^*}}}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}\]
- Using strategy
rm Applied fma-udef23.1
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}{\sqrt{\color{blue}{d \cdot d + c \cdot c}}}\]
Applied hypot-def15.1
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}{\color{blue}{\sqrt{d^2 + c^2}^*}}\]
Taylor expanded around inf 15.1
\[\leadsto \frac{\frac{\color{blue}{b \cdot c - a \cdot d}}{\sqrt{d^2 + c^2}^*}}{\sqrt{d^2 + c^2}^*}\]
if 1.6480088990828942e+161 < d
Initial program 44.0
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified44.0
\[\leadsto \color{blue}{\frac{b \cdot c - a \cdot d}{(d \cdot d + \left(c \cdot c\right))_*}}\]
- Using strategy
rm Applied add-sqr-sqrt44.0
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*} \cdot \sqrt{(d \cdot d + \left(c \cdot c\right))_*}}}\]
Applied associate-/r*44.0
\[\leadsto \color{blue}{\frac{\frac{b \cdot c - a \cdot d}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}}\]
- Using strategy
rm Applied fma-udef44.0
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{\color{blue}{d \cdot d + c \cdot c}}}}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}\]
Applied hypot-def44.0
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{d^2 + c^2}^*}}}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}\]
- Using strategy
rm Applied fma-udef44.0
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}{\sqrt{\color{blue}{d \cdot d + c \cdot c}}}\]
Applied hypot-def27.1
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}{\color{blue}{\sqrt{d^2 + c^2}^*}}\]
Taylor expanded around 0 13.8
\[\leadsto \frac{\color{blue}{-1 \cdot a}}{\sqrt{d^2 + c^2}^*}\]
Simplified13.8
\[\leadsto \frac{\color{blue}{-a}}{\sqrt{d^2 + c^2}^*}\]
- Recombined 2 regimes into one program.
Final simplification15.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;d \le 1.6480088990828942 \cdot 10^{+161}:\\
\;\;\;\;\frac{\frac{b \cdot c - d \cdot a}{\sqrt{d^2 + c^2}^*}}{\sqrt{d^2 + c^2}^*}\\
\mathbf{else}:\\
\;\;\;\;\frac{-a}{\sqrt{d^2 + c^2}^*}\\
\end{array}\]