- Split input into 2 regimes
if c < 2.2233373112832877e+107
Initial program 22.7
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification22.7
\[\leadsto \frac{b \cdot d + a \cdot c}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt22.7
\[\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.6
\[\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.2233373112832877e+107 < c
Initial program 40.4
\[\frac{a \cdot c + b \cdot d}{c \cdot c + d \cdot d}\]
Initial simplification40.4
\[\leadsto \frac{b \cdot d + a \cdot c}{c \cdot c + d \cdot d}\]
- Using strategy
rm Applied add-sqr-sqrt40.4
\[\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*40.4
\[\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 add-sqr-sqrt40.5
\[\leadsto \frac{\frac{b \cdot d + a \cdot c}{\color{blue}{\sqrt{\sqrt{c \cdot c + d \cdot d}} \cdot \sqrt{\sqrt{c \cdot c + d \cdot d}}}}}{\sqrt{c \cdot c + d \cdot d}}\]
Applied associate-/r*40.5
\[\leadsto \frac{\color{blue}{\frac{\frac{b \cdot d + a \cdot c}{\sqrt{\sqrt{c \cdot c + d \cdot d}}}}{\sqrt{\sqrt{c \cdot c + d \cdot d}}}}}{\sqrt{c \cdot c + d \cdot d}}\]
Taylor expanded around 0 40.7
\[\leadsto \frac{\color{blue}{a}}{\sqrt{c \cdot c + d \cdot d}}\]
- Recombined 2 regimes into one program.
Final simplification25.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;c \le 2.2233373112832877 \cdot 10^{+107}:\\
\;\;\;\;\frac{\frac{b \cdot d + c \cdot a}{\sqrt{d \cdot d + c \cdot c}}}{\sqrt{d \cdot d + c \cdot c}}\\
\mathbf{else}:\\
\;\;\;\;\frac{a}{\sqrt{d \cdot d + c \cdot c}}\\
\end{array}\]