- Split input into 3 regimes
if b < -1.3436856271288855e+154
Initial program 60.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 11.0
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(\frac{3}{2} \cdot \frac{a \cdot c}{b} - b\right)}}{3 \cdot a}\]
if -1.3436856271288855e+154 < b < 2.1985411015444033e-72
Initial program 12.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
if 2.1985411015444033e-72 < b
Initial program 51.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 20.7
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}}{3 \cdot a}\]
- Recombined 3 regimes into one program.
Final simplification15.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.3436856271288855 \cdot 10^{+154}:\\
\;\;\;\;\frac{\left(\frac{3}{2} \cdot \frac{a \cdot c}{b} - b\right) + \left(-b\right)}{3 \cdot a}\\
\mathbf{elif}\;b \le 2.1985411015444033 \cdot 10^{-72}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + \left(-b\right)}{3 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{a \cdot c}{b} \cdot \frac{-3}{2}}{3 \cdot a}\\
\end{array}\]