- Split input into 3 regimes
if b < -1.522272609891281e+91
Initial program 42.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 4.1
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -1.522272609891281e+91 < b < 2.9396032746133623e-65
Initial program 13.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around 0 13.3
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
if 2.9396032746133623e-65 < b
Initial program 52.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 8.4
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified8.4
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification9.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.522272609891281 \cdot 10^{+91}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 2.9396032746133623 \cdot 10^{-65}:\\
\;\;\;\;\frac{\sqrt{{b}^{2} - \left(c \cdot a\right) \cdot 4} + \left(-b\right)}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]