- Split input into 3 regimes
if b < -3.123241452794984e+45
Initial program 36.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 10.0
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(\frac{3}{2} \cdot \frac{c \cdot a}{b} - b\right)}}{3 \cdot a}\]
Applied simplify5.2
\[\leadsto \color{blue}{\frac{\frac{a}{b} \cdot \left(\frac{3}{2} \cdot c\right) - \left(b + b\right)}{3 \cdot a}}\]
if -3.123241452794984e+45 < b < 1.0881211606334829e-108
Initial program 12.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied add-sqr-sqrt13.1
\[\leadsto \frac{\color{blue}{\sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}} \cdot \sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}{3 \cdot a}\]
Applied associate-/l*13.1
\[\leadsto \color{blue}{\frac{\sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{\frac{3 \cdot a}{\sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}}\]
Applied simplify13.1
\[\leadsto \frac{\sqrt{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{\color{blue}{\frac{a \cdot 3}{\sqrt{\sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c} - b}}}}\]
if 1.0881211606334829e-108 < b
Initial program 50.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 22.1
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{c \cdot a}{b}}}{3 \cdot a}\]
Applied simplify11.2
\[\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 -3.123241452794984 \cdot 10^{+45}:\\
\;\;\;\;\frac{\left(c \cdot \frac{3}{2}\right) \cdot \frac{a}{b} - \left(b + b\right)}{a \cdot 3}\\
\mathbf{if}\;b \le 1.0881211606334829 \cdot 10^{-108}:\\
\;\;\;\;\frac{\sqrt{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)}}}{\frac{a \cdot 3}{\sqrt{\sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)} - b}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-3}{2}}{3} \cdot \frac{c}{b}\\
\end{array}}\]