- Split input into 3 regimes
if c < -1.5029763737270653e+132
Initial program 43.4
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt43.4
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}}\]
Applied *-un-lft-identity43.4
\[\leadsto \frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}\]
Applied times-frac43.4
\[\leadsto \color{blue}{\frac{1}{\sqrt{c \cdot c + d \cdot d}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c \cdot c + d \cdot d}}}\]
Simplified43.4
\[\leadsto \color{blue}{\frac{1}{\sqrt{c^2 + d^2}^*}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c \cdot c + d \cdot d}}\]
Simplified27.1
\[\leadsto \frac{1}{\sqrt{c^2 + d^2}^*} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}\]
- Using strategy
rm Applied associate-*l/27.1
\[\leadsto \color{blue}{\frac{1 \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}{\sqrt{c^2 + d^2}^*}}\]
Simplified27.1
\[\leadsto \frac{\color{blue}{\frac{c \cdot b - a \cdot d}{\sqrt{c^2 + d^2}^*}}}{\sqrt{c^2 + d^2}^*}\]
- Using strategy
rm Applied clear-num27.1
\[\leadsto \frac{\color{blue}{\frac{1}{\frac{\sqrt{c^2 + d^2}^*}{c \cdot b - a \cdot d}}}}{\sqrt{c^2 + d^2}^*}\]
Taylor expanded around -inf 14.8
\[\leadsto \frac{\color{blue}{-1 \cdot b}}{\sqrt{c^2 + d^2}^*}\]
Simplified14.8
\[\leadsto \frac{\color{blue}{-b}}{\sqrt{c^2 + d^2}^*}\]
if -1.5029763737270653e+132 < c < 7.754041465511007e+123
Initial program 18.7
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt18.7
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}}\]
Applied *-un-lft-identity18.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}\]
Applied times-frac18.7
\[\leadsto \color{blue}{\frac{1}{\sqrt{c \cdot c + d \cdot d}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c \cdot c + d \cdot d}}}\]
Simplified18.7
\[\leadsto \color{blue}{\frac{1}{\sqrt{c^2 + d^2}^*}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c \cdot c + d \cdot d}}\]
Simplified11.7
\[\leadsto \frac{1}{\sqrt{c^2 + d^2}^*} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}\]
- Using strategy
rm Applied associate-*l/11.6
\[\leadsto \color{blue}{\frac{1 \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}{\sqrt{c^2 + d^2}^*}}\]
Simplified11.6
\[\leadsto \frac{\color{blue}{\frac{c \cdot b - a \cdot d}{\sqrt{c^2 + d^2}^*}}}{\sqrt{c^2 + d^2}^*}\]
- Using strategy
rm Applied clear-num11.6
\[\leadsto \frac{\color{blue}{\frac{1}{\frac{\sqrt{c^2 + d^2}^*}{c \cdot b - a \cdot d}}}}{\sqrt{c^2 + d^2}^*}\]
if 7.754041465511007e+123 < c
Initial program 40.8
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt40.8
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}}\]
Applied *-un-lft-identity40.8
\[\leadsto \frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}\]
Applied times-frac40.8
\[\leadsto \color{blue}{\frac{1}{\sqrt{c \cdot c + d \cdot d}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c \cdot c + d \cdot d}}}\]
Simplified40.8
\[\leadsto \color{blue}{\frac{1}{\sqrt{c^2 + d^2}^*}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c \cdot c + d \cdot d}}\]
Simplified26.9
\[\leadsto \frac{1}{\sqrt{c^2 + d^2}^*} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}\]
- Using strategy
rm Applied associate-*l/26.8
\[\leadsto \color{blue}{\frac{1 \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}{\sqrt{c^2 + d^2}^*}}\]
Simplified26.8
\[\leadsto \frac{\color{blue}{\frac{c \cdot b - a \cdot d}{\sqrt{c^2 + d^2}^*}}}{\sqrt{c^2 + d^2}^*}\]
- Using strategy
rm Applied clear-num26.8
\[\leadsto \frac{\color{blue}{\frac{1}{\frac{\sqrt{c^2 + d^2}^*}{c \cdot b - a \cdot d}}}}{\sqrt{c^2 + d^2}^*}\]
Taylor expanded around inf 16.3
\[\leadsto \frac{\color{blue}{b}}{\sqrt{c^2 + d^2}^*}\]
- Recombined 3 regimes into one program.
Final simplification12.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;c \le -1.5029763737270653 \cdot 10^{+132}:\\
\;\;\;\;\frac{-b}{\sqrt{c^2 + d^2}^*}\\
\mathbf{elif}\;c \le 7.754041465511007 \cdot 10^{+123}:\\
\;\;\;\;\frac{\frac{1}{\frac{\sqrt{c^2 + d^2}^*}{b \cdot c - a \cdot d}}}{\sqrt{c^2 + d^2}^*}\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{\sqrt{c^2 + d^2}^*}\\
\end{array}\]