- Split input into 2 regimes
if (/ (- (* b c) (* a d)) (+ (* c c) (* d d))) < 7.197557528519582e+288
Initial program 14.2
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification14.2
\[\leadsto \frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt14.2
\[\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*14.1
\[\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}}}\]
if 7.197557528519582e+288 < (/ (- (* b c) (* a d)) (+ (* c c) (* d d)))
Initial program 61.4
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification61.4
\[\leadsto \frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Taylor expanded around -inf 61.4
\[\leadsto \frac{\color{blue}{b \cdot c - a \cdot d}}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-cube-cbrt61.4
\[\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 associate-/r*61.4
\[\leadsto \color{blue}{\frac{\frac{b \cdot c - a \cdot d}{\sqrt[3]{c \cdot c + d \cdot d} \cdot \sqrt[3]{c \cdot c + d \cdot d}}}{\sqrt[3]{c \cdot c + d \cdot d}}}\]
Taylor expanded around 0 60.8
\[\leadsto \frac{\color{blue}{\left(b \cdot c\right) \cdot {\left(\frac{1}{{d}^{4}}\right)}^{\frac{1}{3}} - a \cdot {\left(\frac{1}{d}\right)}^{\frac{1}{3}}}}{\sqrt[3]{c \cdot c + d \cdot d}}\]
Simplified59.3
\[\leadsto \frac{\color{blue}{\left(b \cdot c\right) \cdot \sqrt[3]{\frac{1}{{d}^{4}}} - a \cdot \sqrt[3]{\frac{1}{d}}}}{\sqrt[3]{c \cdot c + d \cdot d}}\]
- Recombined 2 regimes into one program.
Final simplification25.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d} \le 7.197557528519582 \cdot 10^{+288}:\\
\;\;\;\;\frac{\frac{b \cdot c - a \cdot d}{\sqrt{c \cdot c + d \cdot d}}}{\sqrt{c \cdot c + d \cdot d}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(b \cdot c\right) \cdot \sqrt[3]{\frac{1}{{d}^{4}}} - a \cdot \sqrt[3]{\frac{1}{d}}}{\sqrt[3]{c \cdot c + d \cdot d}}\\
\end{array}\]