- Split input into 3 regimes
if b < -1.6424038809365114e-07
Initial program 31.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied div-inv31.3
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{1}{3 \cdot a}}\]
Taylor expanded around -inf 12.7
\[\leadsto \color{blue}{\left(\frac{3}{2} \cdot \frac{c \cdot a}{b} - 2 \cdot b\right)} \cdot \frac{1}{3 \cdot a}\]
Applied simplify8.7
\[\leadsto \color{blue}{\frac{\left(\frac{3}{2} \cdot a\right) \cdot \frac{c}{b} - 2 \cdot b}{3 \cdot a}}\]
if -1.6424038809365114e-07 < b < 1.6532775834371295e-59
Initial program 15.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied div-inv15.8
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right) \cdot \frac{1}{3 \cdot a}}\]
if 1.6532775834371295e-59 < b
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 18.9
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{c \cdot a}{b}}}{3 \cdot a}\]
Applied simplify8.4
\[\leadsto \color{blue}{1 \cdot \left(\frac{c}{b} \cdot \frac{\frac{-3}{2}}{3}\right)}\]
- Recombined 3 regimes into one program.
Applied simplify11.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -1.6424038809365114 \cdot 10^{-07}:\\
\;\;\;\;\frac{\left(\frac{3}{2} \cdot a\right) \cdot \frac{c}{b} - 2 \cdot b}{a \cdot 3}\\
\mathbf{if}\;b \le 1.6532775834371295 \cdot 10^{-59}:\\
\;\;\;\;\left(\sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c} + \left(-b\right)\right) \cdot \frac{1}{a \cdot 3}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-3}{2}}{3} \cdot \frac{c}{b}\\
\end{array}}\]