- Split input into 3 regimes
if b < -1.973916339598956e+117
Initial program 49.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 9.7
\[\leadsto \frac{\color{blue}{\frac{3}{2} \cdot \frac{c \cdot a}{b} - 2 \cdot b}}{3 \cdot a}\]
if -1.973916339598956e+117 < b < 5.985980878209164e-05
Initial program 15.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
if 5.985980878209164e-05 < b
Initial program 54.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 17.4
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{c \cdot a}{b}}}{3 \cdot a}\]
Applied simplify6.2
\[\leadsto \color{blue}{1 \cdot \left(\frac{c}{b} \cdot \frac{\frac{-3}{2}}{3}\right)}\]
- Recombined 3 regimes into one program.
Applied simplify11.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -1.973916339598956 \cdot 10^{+117}:\\
\;\;\;\;\frac{\frac{3}{2} \cdot \frac{a \cdot c}{b} - 2 \cdot b}{3 \cdot a}\\
\mathbf{if}\;b \le 5.985980878209164 \cdot 10^{-05}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)} + \left(-b\right)}{3 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot \frac{\frac{-3}{2}}{3}\\
\end{array}}\]