- Split input into 3 regimes
if b < -1.4394879493089332e+124
Initial program 52.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 3.7
\[\leadsto \color{blue}{\frac{-2}{3} \cdot \frac{b}{a}}\]
if -1.4394879493089332e+124 < b < 1.2388570333802211e-103
Initial program 11.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
if 1.2388570333802211e-103 < b
Initial program 51.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied clear-num51.2
\[\leadsto \color{blue}{\frac{1}{\frac{3 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}\]
Taylor expanded around 0 11.4
\[\leadsto \frac{1}{\color{blue}{-2 \cdot \frac{b}{c}}}\]
- Recombined 3 regimes into one program.
Final simplification10.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.4394879493089332 \cdot 10^{+124}:\\
\;\;\;\;\frac{-2}{3} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le 1.2388570333802211 \cdot 10^{-103}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)}}{3 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{-2 \cdot \frac{b}{c}}\\
\end{array}\]