- Split input into 5 regimes
if (- b) < -9.085303359188405e+49
Initial program 57.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 42.8
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify3.9
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -9.085303359188405e+49 < (- b) < -3.722166514696236e-38
Initial program 45.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 59.0
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify19.1
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -3.722166514696236e-38 < (- b) < -9.61540166757193e-144
Initial program 28.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+28.5
\[\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 simplify15.6
\[\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}\]
- Using strategy
rm Applied log1p-expm1-u34.8
\[\leadsto \color{blue}{\log_* (1 + (e^{\frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}} - 1)^*)}\]
Applied simplify24.9
\[\leadsto \log_* (1 + \color{blue}{(e^{\frac{\frac{1}{2} \cdot \left(c \cdot 4\right)}{\left(-b\right) - \sqrt{(\left(4 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*}}} - 1)^*})\]
if -9.61540166757193e-144 < (- b) < 1.1215218636373465e+79
Initial program 11.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num11.5
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}\]
Applied simplify11.4
\[\leadsto \frac{1}{\color{blue}{\frac{a \cdot 2}{\sqrt{(\left(-4\right) \cdot \left(a \cdot c\right) + \left(b \cdot b\right))_*} - b}}}\]
if 1.1215218636373465e+79 < (- b)
Initial program 41.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 10.0
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify4.5
\[\leadsto \color{blue}{1 \cdot \frac{c}{b} - \frac{b + b}{2 \cdot a}}\]
- Recombined 5 regimes into one program.
Applied simplify9.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -9.085303359188405 \cdot 10^{+49}:\\
\;\;\;\;\frac{-c}{\frac{b}{1}}\\
\mathbf{if}\;-b \le -3.722166514696236 \cdot 10^{-38}:\\
\;\;\;\;\frac{-c}{\frac{b}{1}}\\
\mathbf{if}\;-b \le -9.61540166757193 \cdot 10^{-144}:\\
\;\;\;\;\log_* (1 + (e^{\frac{\frac{1}{2} \cdot \left(4 \cdot c\right)}{\left(-b\right) - \sqrt{(\left(4 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*}}} - 1)^*)\\
\mathbf{if}\;-b \le 1.1215218636373465 \cdot 10^{+79}:\\
\;\;\;\;\frac{1}{\frac{2 \cdot a}{\sqrt{(\left(-4\right) \cdot \left(c \cdot a\right) + \left(b \cdot b\right))_*} - b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b + b}{2 \cdot a}\\
\end{array}}\]