- Split input into 3 regimes
if b < -7.831748553927705e+153
Initial program 60.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 2.3
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -7.831748553927705e+153 < b < 9.075353573798497e-157
Initial program 10.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied sub-neg10.5
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{b \cdot b + \left(-\left(4 \cdot a\right) \cdot c\right)}}}{2 \cdot a}\]
if 9.075353573798497e-157 < b
Initial program 48.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied sub-neg48.9
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{b \cdot b + \left(-\left(4 \cdot a\right) \cdot c\right)}}}{2 \cdot a}\]
Taylor expanded around inf 13.3
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified13.3
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -7.831748553927705 \cdot 10^{+153}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 9.075353573798497 \cdot 10^{-157}:\\
\;\;\;\;\frac{\sqrt{b \cdot b + c \cdot \left(a \cdot -4\right)} + \left(-b\right)}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]