- Split input into 4 regimes
if (/ -1/2 b_2) < -8189120166.134877
Initial program 11.0
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied div-inv11.1
\[\leadsto \color{blue}{\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}\right) \cdot \frac{1}{a}}\]
if -8189120166.134877 < (/ -1/2 b_2) < -1.4183813613325507e-305
Initial program 29.0
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 8.4
\[\leadsto \color{blue}{-2 \cdot \frac{b_2}{a}}\]
if -1.4183813613325507e-305 < (/ -1/2 b_2) < 8.286579634223413e+21
Initial program 54.7
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 46.1
\[\leadsto \frac{\left(-b_2\right) - \color{blue}{\left(\frac{1}{2} \cdot \frac{c \cdot a}{b_2} - b_2\right)}}{a}\]
Applied simplify7.0
\[\leadsto \color{blue}{\frac{\left(-\frac{1}{2}\right) \cdot \frac{c}{b_2}}{1}}\]
if 8.286579634223413e+21 < (/ -1/2 b_2)
Initial program 22.6
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--22.7
\[\leadsto \frac{\color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
Applied simplify15.7
\[\leadsto \frac{\frac{\color{blue}{c \cdot a}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Applied simplify15.7
\[\leadsto \frac{\frac{c \cdot a}{\color{blue}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{a}\]
- Using strategy
rm Applied add-cube-cbrt16.5
\[\leadsto \frac{\frac{c \cdot a}{\color{blue}{\left(\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2} \cdot \sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}\right) \cdot \sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}}{a}\]
Applied times-frac13.6
\[\leadsto \frac{\color{blue}{\frac{c}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2} \cdot \sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}} \cdot \frac{a}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}}{a}\]
- Recombined 4 regimes into one program.
Applied simplify9.5
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;\frac{\frac{-1}{2}}{b_2} \le -8189120166.134877:\\
\;\;\;\;\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - c \cdot a}\right) \cdot \frac{1}{a}\\
\mathbf{if}\;\frac{\frac{-1}{2}}{b_2} \le -1.4183813613325507 \cdot 10^{-305}:\\
\;\;\;\;\frac{b_2}{a} \cdot -2\\
\mathbf{if}\;\frac{\frac{-1}{2}}{b_2} \le 8.286579634223413 \cdot 10^{+21}:\\
\;\;\;\;\frac{c}{b_2} \cdot \left(-\frac{1}{2}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{c}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2} \cdot \sqrt[3]{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2}} \cdot \frac{a}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2}}}{a}\\
\end{array}}\]