- Split input into 2 regimes
if d < -5.379472257971529e+59 or 2.383322591881426e+126 < d
Initial program 37.5
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification37.5
\[\leadsto \frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied div-sub37.5
\[\leadsto \color{blue}{\frac{b \cdot c}{c \cdot c + d \cdot d} - \frac{a \cdot d}{c \cdot c + d \cdot d}}\]
- Using strategy
rm Applied associate-/l*35.0
\[\leadsto \frac{b \cdot c}{c \cdot c + d \cdot d} - \color{blue}{\frac{a}{\frac{c \cdot c + d \cdot d}{d}}}\]
if -5.379472257971529e+59 < d < 2.383322591881426e+126
Initial program 18.0
\[\frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification18.0
\[\leadsto \frac{b \cdot c - a \cdot d}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied div-sub18.1
\[\leadsto \color{blue}{\frac{b \cdot c}{c \cdot c + d \cdot d} - \frac{a \cdot d}{c \cdot c + d \cdot d}}\]
- Using strategy
rm Applied add-sqr-sqrt18.1
\[\leadsto \frac{b \cdot c}{\color{blue}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}} - \frac{a \cdot d}{c \cdot c + d \cdot d}\]
Applied times-frac15.9
\[\leadsto \color{blue}{\frac{b}{\sqrt{c \cdot c + d \cdot d}} \cdot \frac{c}{\sqrt{c \cdot c + d \cdot d}}} - \frac{a \cdot d}{c \cdot c + d \cdot d}\]
- Recombined 2 regimes into one program.
Final simplification22.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;d \le -5.379472257971529 \cdot 10^{+59} \lor \neg \left(d \le 2.383322591881426 \cdot 10^{+126}\right):\\
\;\;\;\;\frac{b \cdot c}{d \cdot d + c \cdot c} - \frac{a}{\frac{d \cdot d + c \cdot c}{d}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{\sqrt{d \cdot d + c \cdot c}} \cdot \frac{b}{\sqrt{d \cdot d + c \cdot c}} - \frac{d \cdot a}{d \cdot d + c \cdot c}\\
\end{array}\]