- Split input into 3 regimes
if b < -1.38476143180922117e134
Initial program 56.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 10.0
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(2 \cdot \frac{a \cdot c}{b} - b\right)}}{2 \cdot a}\]
Simplified2.4
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(2 \cdot \left(c \cdot \frac{a}{b}\right) - b\right)}}{2 \cdot a}\]
if -1.38476143180922117e134 < b < 5.1943629106266941e-122
Initial program 11.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
if 5.1943629106266941e-122 < b
Initial program 51.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 10.8
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.38476143180922117 \cdot 10^{134}:\\
\;\;\;\;\frac{\left(-b\right) + \left(2 \cdot \left(c \cdot \frac{a}{b}\right) - b\right)}{2 \cdot a}\\
\mathbf{elif}\;b \le 5.1943629106266941 \cdot 10^{-122}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)}}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \frac{c}{b}\\
\end{array}\]