- Split input into 4 regimes
if (- b) < -2.9518183431889837e-19 or -1.03811770724071e-112 < (- b) < -7.684966148341504e-133
Initial program 53.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 18.7
\[\leadsto \frac{\color{blue}{-2 \cdot \frac{c \cdot a}{b}}}{2 \cdot a}\]
Applied simplify7.2
\[\leadsto \color{blue}{1 \cdot \left(\frac{c}{b} \cdot \frac{-2}{2}\right)}\]
if -2.9518183431889837e-19 < (- b) < -1.03811770724071e-112
Initial program 35.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+35.9
\[\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.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}\]
if -7.684966148341504e-133 < (- b) < 52.989744707118035
Initial program 12.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied simplify12.3
\[\leadsto \color{blue}{\frac{\sqrt{(\left(4 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{2 \cdot a}}\]
- Using strategy
rm Applied div-inv12.4
\[\leadsto \color{blue}{\left(\sqrt{(\left(4 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right) \cdot \frac{1}{2 \cdot a}}\]
if 52.989744707118035 < (- b)
Initial program 29.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 8.2
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify8.2
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.9
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -2.9518183431889837 \cdot 10^{-19}:\\
\;\;\;\;\frac{c}{b} \cdot \frac{-2}{2}\\
\mathbf{if}\;-b \le -1.03811770724071 \cdot 10^{-112}:\\
\;\;\;\;\frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)}}}{a \cdot 2}\\
\mathbf{if}\;-b \le -7.684966148341504 \cdot 10^{-133}:\\
\;\;\;\;\frac{c}{b} \cdot \frac{-2}{2}\\
\mathbf{if}\;-b \le 52.989744707118035:\\
\;\;\;\;\frac{1}{a \cdot 2} \cdot \left(\sqrt{(\left(a \cdot 4\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{-b}{a}\\
\end{array}}\]