- Split input into 2 regimes
if d < 1.5435655476791597e+115
Initial program 22.5
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified22.5
\[\leadsto \color{blue}{\frac{b \cdot c - a \cdot d}{(d \cdot d + \left(c \cdot c\right))_*}}\]
- Using strategy
rm Applied add-sqr-sqrt22.5
\[\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*22.4
\[\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-udef22.4
\[\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-def22.4
\[\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-udef22.4
\[\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-def14.0
\[\leadsto \frac{\frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}{\color{blue}{\sqrt{d^2 + c^2}^*}}\]
if 1.5435655476791597e+115 < d
Initial program 41.3
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Simplified41.3
\[\leadsto \color{blue}{\frac{b \cdot c - a \cdot d}{(d \cdot d + \left(c \cdot c\right))_*}}\]
- Using strategy
rm Applied add-sqr-sqrt41.3
\[\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*41.3
\[\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-udef41.3
\[\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-def41.3
\[\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-udef41.3
\[\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-def26.7
\[\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 15.3
\[\leadsto \frac{\color{blue}{-1 \cdot a}}{\sqrt{d^2 + c^2}^*}\]
Simplified15.3
\[\leadsto \frac{\color{blue}{-a}}{\sqrt{d^2 + c^2}^*}\]
- Recombined 2 regimes into one program.
Final simplification14.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;d \le 1.5435655476791597 \cdot 10^{+115}:\\
\;\;\;\;\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}\]