- Split input into 3 regimes
if b < -3.2446290901662446e+152
Initial program 60.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 10.4
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify2.7
\[\leadsto \color{blue}{\frac{\frac{c}{b}}{1} - \frac{b + b}{2 \cdot a}}\]
if -3.2446290901662446e+152 < b < 7.429427179450615e-44
Initial program 13.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
if 7.429427179450615e-44 < b
Initial program 53.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 46.7
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify7.8
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
- Recombined 3 regimes into one program.
Applied simplify10.0
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -3.2446290901662446 \cdot 10^{+152}:\\
\;\;\;\;\frac{c}{b} - \frac{b + b}{2 \cdot a}\\
\mathbf{elif}\;b \le 7.429427179450615 \cdot 10^{-44}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{b}\\
\end{array}}\]