- Split input into 2 regimes
if d < 2.8212550774050387e+61
Initial program 23.0
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification23.0
\[\leadsto \frac{b \cdot d + a \cdot c}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt23.0
\[\leadsto \frac{b \cdot d + a \cdot c}{\color{blue}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}}\]
Applied associate-/r*22.9
\[\leadsto \color{blue}{\frac{\frac{b \cdot d + a \cdot c}{\sqrt{c \cdot c + d \cdot d}}}{\sqrt{c \cdot c + d \cdot d}}}\]
if 2.8212550774050387e+61 < d
Initial program 35.5
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification35.5
\[\leadsto \frac{b \cdot d + a \cdot c}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt35.5
\[\leadsto \frac{b \cdot d + a \cdot c}{\color{blue}{\sqrt{c \cdot c + d \cdot d} \cdot \sqrt{c \cdot c + d \cdot d}}}\]
Applied associate-/r*35.5
\[\leadsto \color{blue}{\frac{\frac{b \cdot d + a \cdot c}{\sqrt{c \cdot c + d \cdot d}}}{\sqrt{c \cdot c + d \cdot d}}}\]
- Using strategy
rm Applied div-inv35.5
\[\leadsto \frac{\color{blue}{\left(b \cdot d + a \cdot c\right) \cdot \frac{1}{\sqrt{c \cdot c + d \cdot d}}}}{\sqrt{c \cdot c + d \cdot d}}\]
Taylor expanded around inf 36.6
\[\leadsto \frac{\color{blue}{b}}{\sqrt{c \cdot c + d \cdot d}}\]
- Recombined 2 regimes into one program.
Final simplification25.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;d \le 2.8212550774050387 \cdot 10^{+61}:\\
\;\;\;\;\frac{\frac{a \cdot c + b \cdot d}{\sqrt{d \cdot d + c \cdot c}}}{\sqrt{d \cdot d + c \cdot c}}\\
\mathbf{else}:\\
\;\;\;\;\frac{b}{\sqrt{d \cdot d + c \cdot c}}\\
\end{array}\]