- Split input into 3 regimes
if c < -1.5313835343789558e+158
Initial program 43.7
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt43.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-identity43.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-frac43.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}}}\]
Applied simplify43.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}}\]
Applied simplify28.4
\[\leadsto \frac{1}{\sqrt{c^2 + d^2}^*} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}\]
Taylor expanded around -inf 12.7
\[\leadsto \frac{1}{\sqrt{c^2 + d^2}^*} \cdot \color{blue}{\left(-1 \cdot b\right)}\]
Applied simplify12.5
\[\leadsto \color{blue}{\frac{-b}{\sqrt{c^2 + d^2}^*}}\]
if -1.5313835343789558e+158 < c < 5.540634551460941e+218
Initial program 21.3
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt21.3
\[\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-identity21.3
\[\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-frac21.3
\[\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}}}\]
Applied simplify21.3
\[\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}}\]
Applied simplify13.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 pow113.1
\[\leadsto \frac{1}{\sqrt{c^2 + d^2}^*} \cdot \color{blue}{{\left(\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}\right)}^{1}}\]
Applied pow113.1
\[\leadsto \color{blue}{{\left(\frac{1}{\sqrt{c^2 + d^2}^*}\right)}^{1}} \cdot {\left(\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}\right)}^{1}\]
Applied pow-prod-down13.1
\[\leadsto \color{blue}{{\left(\frac{1}{\sqrt{c^2 + d^2}^*} \cdot \frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}\right)}^{1}}\]
Applied simplify13.0
\[\leadsto {\color{blue}{\left(\frac{\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}{\sqrt{c^2 + d^2}^*}\right)}}^{1}\]
if 5.540634551460941e+218 < c
Initial program 38.7
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt38.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-identity38.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-frac38.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}}}\]
Applied simplify38.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}}\]
Applied simplify29.1
\[\leadsto \frac{1}{\sqrt{c^2 + d^2}^*} \cdot \color{blue}{\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^*}}\]
Taylor expanded around inf 9.8
\[\leadsto \frac{1}{\sqrt{c^2 + d^2}^*} \cdot \color{blue}{b}\]
Applied simplify9.7
\[\leadsto \color{blue}{\frac{b}{\sqrt{c^2 + d^2}^*}}\]
- Recombined 3 regimes into one program.
- Removed slow
pow expressions. Applied simplify19.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;c \le -1.5313835343789558 \cdot 10^{+158}:\\
\;\;\;\;\frac{-b}{\sqrt{c^2 + d^2}^*}\\
\mathbf{if}\;c \le 5.540634551460941 \cdot 10^{+218}:\\
\;\;\;\;\frac{b \cdot c - a \cdot d}{\sqrt{c^2 + d^2}^* \cdot \sqrt{c^2 + d^2}^*}\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{\sqrt{c^2 + d^2}^*}\\
\end{array}}\]