- Split input into 4 regimes
if (- b) < -3.760976014726683e+72
Initial program 57.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 13.5
\[\leadsto \frac{\color{blue}{-2 \cdot \frac{c \cdot a}{b}}}{2 \cdot a}\]
Applied simplify2.5
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -3.760976014726683e+72 < (- b) < -1.206225567686126e-254
Initial program 33.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+33.3
\[\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 simplify17.0
\[\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 clear-num17.1
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}}\]
Applied simplify8.7
\[\leadsto \frac{1}{\color{blue}{\left(\sqrt{b \cdot b - \left(a \cdot 4\right) \cdot c} + b\right) \cdot \left(-\frac{\frac{1}{2}}{c}\right)}}\]
if -1.206225567686126e-254 < (- b) < 1.80809249792908e+139
Initial program 9.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
if 1.80809249792908e+139 < (- b)
Initial program 55.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 10.9
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify3.3
\[\leadsto \color{blue}{\frac{\frac{c}{b}}{1} - \frac{b + b}{2 \cdot a}}\]
- Recombined 4 regimes into one program.
Applied simplify6.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -3.760976014726683 \cdot 10^{+72}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{if}\;-b \le -1.206225567686126 \cdot 10^{-254}:\\
\;\;\;\;\frac{1}{\left(\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} + b\right) \cdot \frac{\frac{-1}{2}}{c}}\\
\mathbf{if}\;-b \le 1.80809249792908 \cdot 10^{+139}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)} + \left(-b\right)}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b + b}{a \cdot 2}\\
\end{array}}\]