- Split input into 4 regimes
if (- b) < -4.681232182683818e+117
Initial program 60.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+60.1
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}{2 \cdot a}\]
Applied simplify33.9
\[\leadsto \frac{\frac{\color{blue}{c \cdot \left(a \cdot 4\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}\]
Taylor expanded around inf 14.6
\[\leadsto \frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}}{2 \cdot a}\]
Applied simplify2.0
\[\leadsto \color{blue}{\frac{\frac{1}{2} \cdot \left(c \cdot 4\right)}{(c \cdot \left(\frac{a}{b} + \frac{a}{b}\right) + \left(\left(-b\right) - b\right))_*}}\]
if -4.681232182683818e+117 < (- b) < -2.118907474743662e-210
Initial program 36.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+36.7
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}{2 \cdot a}\]
Applied simplify16.4
\[\leadsto \frac{\frac{\color{blue}{c \cdot \left(a \cdot 4\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}\]
if -2.118907474743662e-210 < (- b) < 7.665518801524091e+112
Initial program 10.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num10.8
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}\]
if 7.665518801524091e+112 < (- b)
Initial program 47.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 9.6
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify3.0
\[\leadsto \color{blue}{1 \cdot \frac{(\left(\frac{a}{b}\right) \cdot c + \left(-b\right))_*}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.3
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -4.681232182683818 \cdot 10^{+117}:\\
\;\;\;\;\frac{\frac{1}{2} \cdot \left(4 \cdot c\right)}{(c \cdot \left(\frac{a}{b} + \frac{a}{b}\right) + \left(\left(-b\right) - b\right))_*}\\
\mathbf{if}\;-b \le -2.118907474743662 \cdot 10^{-210}:\\
\;\;\;\;\frac{\frac{c \cdot \left(4 \cdot a\right)}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}}{a + a}\\
\mathbf{if}\;-b \le 7.665518801524091 \cdot 10^{+112}:\\
\;\;\;\;\frac{1}{\frac{a + a}{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{(\left(\frac{a}{b}\right) \cdot c + \left(-b\right))_*}{a}\\
\end{array}}\]