- Split input into 4 regimes
if (* -2/3 b) < -2.327767601627927e+87
Initial program 58.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 15.1
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{c \cdot a}{b}}}{3 \cdot a}\]
Applied simplify3.2
\[\leadsto \color{blue}{1 \cdot \left(\frac{c}{b} \cdot \frac{\frac{-3}{2}}{3}\right)}\]
if -2.327767601627927e+87 < (* -2/3 b) < -1.6038021471621018e-298
Initial program 32.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+32.6
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Applied simplify17.1
\[\leadsto \frac{\frac{\color{blue}{c \cdot \left(a \cdot 3\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity17.1
\[\leadsto \frac{\frac{c \cdot \left(a \cdot 3\right)}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}}{3 \cdot a}\]
Applied times-frac15.1
\[\leadsto \frac{\color{blue}{\frac{c}{1} \cdot \frac{a \cdot 3}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Applied times-frac10.5
\[\leadsto \color{blue}{\frac{\frac{c}{1}}{3} \cdot \frac{\frac{a \cdot 3}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{a}}\]
Applied simplify10.5
\[\leadsto \color{blue}{\frac{c}{3}} \cdot \frac{\frac{a \cdot 3}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{a}\]
Applied simplify9.2
\[\leadsto \frac{c}{3} \cdot \color{blue}{\frac{3}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)}}}\]
if -1.6038021471621018e-298 < (* -2/3 b) < 4.234302703938596e+144
Initial program 8.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied clear-num8.8
\[\leadsto \color{blue}{\frac{1}{\frac{3 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}\]
Applied simplify8.8
\[\leadsto \frac{1}{\color{blue}{\frac{a \cdot 3}{\sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c} - b}}}\]
if 4.234302703938596e+144 < (* -2/3 b)
Initial program 57.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*57.9
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3}}{a}}\]
Applied simplify57.9
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 3} - b}{3}}}{a}\]
Taylor expanded around -inf 2.9
\[\leadsto \frac{\color{blue}{\frac{-2}{3} \cdot b}}{a}\]
- Recombined 4 regimes into one program.
Applied simplify6.9
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \cdot \frac{-2}{3} \le -2.327767601627927 \cdot 10^{+87}:\\
\;\;\;\;\frac{\frac{-3}{2}}{3} \cdot \frac{c}{b}\\
\mathbf{if}\;b \cdot \frac{-2}{3} \le -1.6038021471621018 \cdot 10^{-298}:\\
\;\;\;\;\frac{3}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)}} \cdot \frac{c}{3}\\
\mathbf{if}\;b \cdot \frac{-2}{3} \le 4.234302703938596 \cdot 10^{+144}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 3}{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{b \cdot \frac{-2}{3}}{a}\\
\end{array}}\]