- Split input into 2 regimes
if c < -5.03571375883534e+131 or 1.5009880531967683e+116 < c
Initial program 41.4
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-cube-cbrt41.5
\[\leadsto \frac{b \cdot c - a \cdot d}{\color{blue}{\left(\sqrt[3]{c \cdot c + d \cdot d} \cdot \sqrt[3]{c \cdot c + d \cdot d}\right) \cdot \sqrt[3]{c \cdot c + d \cdot d}}}\]
Applied *-un-lft-identity41.5
\[\leadsto \frac{\color{blue}{1 \cdot \left(b \cdot c - a \cdot d\right)}}{\left(\sqrt[3]{c \cdot c + d \cdot d} \cdot \sqrt[3]{c \cdot c + d \cdot d}\right) \cdot \sqrt[3]{c \cdot c + d \cdot d}}\]
Applied times-frac41.5
\[\leadsto \color{blue}{\frac{1}{\sqrt[3]{c \cdot c + d \cdot d} \cdot \sqrt[3]{c \cdot c + d \cdot d}} \cdot \frac{b \cdot c - a \cdot d}{\sqrt[3]{c \cdot c + d \cdot d}}}\]
Taylor expanded around inf 15.5
\[\leadsto \color{blue}{\frac{b}{c} - \frac{d \cdot a}{{c}^{2}}}\]
- Using strategy
rm Applied unpow215.5
\[\leadsto \frac{b}{c} - \frac{d \cdot a}{\color{blue}{c \cdot c}}\]
Applied times-frac8.7
\[\leadsto \frac{b}{c} - \color{blue}{\frac{d}{c} \cdot \frac{a}{c}}\]
if -5.03571375883534e+131 < c < 1.5009880531967683e+116
Initial program 18.1
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt18.1
\[\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 associate-/r*18.0
\[\leadsto \color{blue}{\frac{\frac{b \cdot c - a \cdot d}{\sqrt{c \cdot c + d \cdot d}}}{\sqrt{c \cdot c + d \cdot d}}}\]
- Recombined 2 regimes into one program.
Applied simplify15.0
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;c \le -5.03571375883534 \cdot 10^{+131} \lor \neg \left(c \le 1.5009880531967683 \cdot 10^{+116}\right):\\
\;\;\;\;\frac{b}{c} - \frac{a}{c} \cdot \frac{d}{c}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{b \cdot c - d \cdot a}{\sqrt{c \cdot c + d \cdot d}}}{\sqrt{c \cdot c + d \cdot d}}\\
\end{array}}\]