- Split input into 3 regimes
if b_2 < -1.6457378087109476e-83
Initial program 52.0
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 46.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 simplify9.2
\[\leadsto \color{blue}{\frac{\left(-\frac{1}{2}\right) \cdot \frac{c}{b_2}}{1}}\]
if -1.6457378087109476e-83 < b_2 < 1.326155867761659e+154
Initial program 12.1
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
if 1.326155867761659e+154 < b_2
Initial program 60.8
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied div-inv60.8
\[\leadsto \color{blue}{\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}\right) \cdot \frac{1}{a}}\]
Taylor expanded around inf 10.7
\[\leadsto \color{blue}{\left(\frac{1}{2} \cdot \frac{c \cdot a}{b_2} - 2 \cdot b_2\right)} \cdot \frac{1}{a}\]
Applied simplify2.4
\[\leadsto \color{blue}{\frac{c \cdot \frac{1}{2}}{b_2} - b_2 \cdot \frac{2}{a}}\]
- Recombined 3 regimes into one program.
Applied simplify9.9
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b_2 \le -1.6457378087109476 \cdot 10^{-83}:\\
\;\;\;\;\left(-\frac{1}{2}\right) \cdot \frac{c}{b_2}\\
\mathbf{if}\;b_2 \le 1.326155867761659 \cdot 10^{+154}:\\
\;\;\;\;\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - c \cdot a}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{1}{2} \cdot c}{b_2} - b_2 \cdot \frac{2}{a}\\
\end{array}}\]