- Split input into 3 regimes
if (/ -1/2 b_2) < -5.198788477184911e+87 or 1.874782776624899e-155 < (/ -1/2 b_2)
Initial program 11.8
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
if -5.198788477184911e+87 < (/ -1/2 b_2) < 1.3930544562317008e-307
Initial program 52.2
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 47.9
\[\leadsto \frac{\left(-b_2\right) + \color{blue}{\left(b_2 - \frac{1}{2} \cdot \frac{c \cdot a}{b_2}\right)}}{a}\]
Applied simplify9.9
\[\leadsto \color{blue}{\left(-\frac{1}{2}\right) \cdot \frac{c}{b_2}}\]
if 1.3930544562317008e-307 < (/ -1/2 b_2) < 1.874782776624899e-155
Initial program 60.9
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 10.5
\[\leadsto \frac{\left(-b_2\right) + \color{blue}{\left(\frac{1}{2} \cdot \frac{c \cdot a}{b_2} - b_2\right)}}{a}\]
Applied simplify2.1
\[\leadsto \color{blue}{\frac{\frac{c}{b_2}}{2} - \left(\frac{b_2}{a} + \frac{b_2}{a}\right)}\]
- Recombined 3 regimes into one program.
Applied simplify9.9
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{\frac{-1}{2}}{b_2} \le -5.198788477184911 \cdot 10^{+87}:\\
\;\;\;\;\frac{\sqrt{b_2 \cdot b_2 - c \cdot a} + \left(-b_2\right)}{a}\\
\mathbf{if}\;\frac{\frac{-1}{2}}{b_2} \le 1.3930544562317008 \cdot 10^{-307}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{if}\;\frac{\frac{-1}{2}}{b_2} \le 1.874782776624899 \cdot 10^{-155}:\\
\;\;\;\;\frac{\frac{c}{b_2}}{2} - \left(\frac{b_2}{a} + \frac{b_2}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{b_2 \cdot b_2 - c \cdot a} + \left(-b_2\right)}{a}\\
\end{array}}\]