- Split input into 2 regimes
if c < -2.085099206562825e+129 or 1.2579039748165442e+126 < c
Initial program 42.4
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification42.4
\[\leadsto \frac{b \cdot c - a \cdot d}{(d \cdot d + \left(c \cdot c\right))_*}\]
- Using strategy
rm Applied add-sqr-sqrt42.4
\[\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 *-un-lft-identity42.4
\[\leadsto \frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*} \cdot \sqrt{(d \cdot d + \left(c \cdot c\right))_*}}\]
Applied times-frac42.4
\[\leadsto \color{blue}{\frac{1}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}}\]
Simplified42.4
\[\leadsto \color{blue}{\frac{1}{\sqrt{d^2 + c^2}^*}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}\]
Simplified28.2
\[\leadsto \frac{1}{\sqrt{d^2 + c^2}^*} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}\]
- Using strategy
rm Applied associate-*l/28.1
\[\leadsto \color{blue}{\frac{1 \cdot \frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}{\sqrt{d^2 + c^2}^*}}\]
Simplified28.1
\[\leadsto \frac{\color{blue}{\frac{c \cdot b - a \cdot d}{\sqrt{d^2 + c^2}^*}}}{\sqrt{d^2 + c^2}^*}\]
- Using strategy
rm Applied div-sub28.1
\[\leadsto \frac{\color{blue}{\frac{c \cdot b}{\sqrt{d^2 + c^2}^*} - \frac{a \cdot d}{\sqrt{d^2 + c^2}^*}}}{\sqrt{d^2 + c^2}^*}\]
- Using strategy
rm Applied *-un-lft-identity28.1
\[\leadsto \frac{\frac{c \cdot b}{\color{blue}{1 \cdot \sqrt{d^2 + c^2}^*}} - \frac{a \cdot d}{\sqrt{d^2 + c^2}^*}}{\sqrt{d^2 + c^2}^*}\]
Applied times-frac7.8
\[\leadsto \frac{\color{blue}{\frac{c}{1} \cdot \frac{b}{\sqrt{d^2 + c^2}^*}} - \frac{a \cdot d}{\sqrt{d^2 + c^2}^*}}{\sqrt{d^2 + c^2}^*}\]
Simplified7.8
\[\leadsto \frac{\color{blue}{c} \cdot \frac{b}{\sqrt{d^2 + c^2}^*} - \frac{a \cdot d}{\sqrt{d^2 + c^2}^*}}{\sqrt{d^2 + c^2}^*}\]
if -2.085099206562825e+129 < c < 1.2579039748165442e+126
Initial program 18.6
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification18.6
\[\leadsto \frac{b \cdot c - a \cdot d}{(d \cdot d + \left(c \cdot c\right))_*}\]
- Using strategy
rm Applied add-sqr-sqrt18.6
\[\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 *-un-lft-identity18.6
\[\leadsto \frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*} \cdot \sqrt{(d \cdot d + \left(c \cdot c\right))_*}}\]
Applied times-frac18.6
\[\leadsto \color{blue}{\frac{1}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}}\]
Simplified18.6
\[\leadsto \color{blue}{\frac{1}{\sqrt{d^2 + c^2}^*}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{(d \cdot d + \left(c \cdot c\right))_*}}\]
Simplified12.1
\[\leadsto \frac{1}{\sqrt{d^2 + c^2}^*} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}\]
- Using strategy
rm Applied associate-*l/12.0
\[\leadsto \color{blue}{\frac{1 \cdot \frac{b \cdot c - a \cdot d}{\sqrt{d^2 + c^2}^*}}{\sqrt{d^2 + c^2}^*}}\]
Simplified12.0
\[\leadsto \frac{\color{blue}{\frac{c \cdot b - a \cdot d}{\sqrt{d^2 + c^2}^*}}}{\sqrt{d^2 + c^2}^*}\]
- Using strategy
rm Applied div-sub12.0
\[\leadsto \frac{\color{blue}{\frac{c \cdot b}{\sqrt{d^2 + c^2}^*} - \frac{a \cdot d}{\sqrt{d^2 + c^2}^*}}}{\sqrt{d^2 + c^2}^*}\]
- Using strategy
rm Applied associate-/l*3.1
\[\leadsto \frac{\frac{c \cdot b}{\sqrt{d^2 + c^2}^*} - \color{blue}{\frac{a}{\frac{\sqrt{d^2 + c^2}^*}{d}}}}{\sqrt{d^2 + c^2}^*}\]
- Recombined 2 regimes into one program.
Final simplification4.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;c \le -2.085099206562825 \cdot 10^{+129} \lor \neg \left(c \le 1.2579039748165442 \cdot 10^{+126}\right):\\
\;\;\;\;\frac{c \cdot \frac{b}{\sqrt{d^2 + c^2}^*} - \frac{d \cdot a}{\sqrt{d^2 + c^2}^*}}{\sqrt{d^2 + c^2}^*}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b \cdot c}{\sqrt{d^2 + c^2}^*} - \frac{a}{\frac{\sqrt{d^2 + c^2}^*}{d}}}{\sqrt{d^2 + c^2}^*}\\
\end{array}\]