- Split input into 4 regimes
if (- b) < -5.821596402918175e+115
Initial program 59.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 41.0
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{a \cdot c}{b}\right)}}{2 \cdot a}\]
Applied simplify2.0
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -5.821596402918175e+115 < (- b) < -1.9516615171416054e-122
Initial program 40.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+40.8
\[\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 simplify14.9
\[\leadsto \frac{\frac{\color{blue}{4 \cdot \left(c \cdot a\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}\]
if -1.9516615171416054e-122 < (- b) < 3.092591079713731e+103
Initial program 11.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
if 3.092591079713731e+103 < (- b)
Initial program 44.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 9.5
\[\leadsto \frac{\color{blue}{2 \cdot \frac{a \cdot c}{b} - 2 \cdot b}}{2 \cdot a}\]
Applied simplify3.3
\[\leadsto \color{blue}{\frac{\frac{c}{1}}{b} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify8.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -5.821596402918175 \cdot 10^{+115}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le -1.9516615171416054 \cdot 10^{-122}:\\
\;\;\;\;\frac{\frac{4 \cdot \left(c \cdot a\right)}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{a \cdot 2}\\
\mathbf{if}\;-b \le 3.092591079713731 \cdot 10^{+103}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} + \left(-b\right)}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}}\]