- Split input into 3 regimes
if b < -9.234735130895007e+86
Initial program 43.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 4.3
\[\leadsto \color{blue}{\frac{-2}{3} \cdot \frac{b}{a}}\]
if -9.234735130895007e+86 < b < 7.359951940587014e-86
Initial program 13.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied clear-num13.2
\[\leadsto \color{blue}{\frac{1}{\frac{3 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}\]
Applied simplify13.2
\[\leadsto \frac{1}{\color{blue}{\frac{a \cdot 3}{\sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c} - b}}}\]
if 7.359951940587014e-86 < b
Initial program 51.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 21.8
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{c \cdot a}{b}}}{3 \cdot a}\]
Applied simplify10.4
\[\leadsto \color{blue}{1 \cdot \left(\frac{c}{b} \cdot \frac{\frac{-3}{2}}{3}\right)}\]
- Recombined 3 regimes into one program.
Applied simplify10.7
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -9.234735130895007 \cdot 10^{+86}:\\
\;\;\;\;\frac{-2}{3} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le 7.359951940587014 \cdot 10^{-86}:\\
\;\;\;\;\frac{1}{\frac{3 \cdot a}{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-3}{2}}{3} \cdot \frac{c}{b}\\
\end{array}}\]