- Split input into 3 regimes
if (- b) < -2.8180723036556657e-82
Initial program 53.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 8.5
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b}}\]
if -2.8180723036556657e-82 < (- b) < 2.776298279814608e+118
Initial program 12.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*12.1
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3}}{a}}\]
if 2.776298279814608e+118 < (- b)
Initial program 49.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 4.2
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b} - \frac{2}{3} \cdot \frac{b}{a}}\]
- Recombined 3 regimes into one program.
Final simplification9.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;-b \le -2.8180723036556657 \cdot 10^{-82}:\\
\;\;\;\;\frac{c}{b} \cdot \frac{-1}{2}\\
\mathbf{elif}\;-b \le 2.776298279814608 \cdot 10^{+118}:\\
\;\;\;\;\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)}}{3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot \frac{1}{2} - \frac{b}{a} \cdot \frac{2}{3}\\
\end{array}\]