- Split input into 3 regimes
if b < -6.238643463732416e+127
Initial program 51.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 10.2
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(\frac{3}{2} \cdot \frac{c \cdot a}{b} - b\right)}}{3 \cdot a}\]
Applied simplify3.4
\[\leadsto \color{blue}{\frac{\frac{c}{b}}{\frac{3}{\frac{3}{2}}} - \frac{b + b}{3 \cdot a}}\]
if -6.238643463732416e+127 < b < 6.013511059956263e-15
Initial program 14.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*14.5
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3}}{a}}\]
if 6.013511059956263e-15 < b
Initial program 54.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+54.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 simplify27.0
\[\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}\]
Taylor expanded around inf 18.0
\[\leadsto \frac{\frac{c \cdot \left(a \cdot 3\right)}{\left(-b\right) - \color{blue}{\left(b - \frac{3}{2} \cdot \frac{c \cdot a}{b}\right)}}}{3 \cdot a}\]
Applied simplify6.6
\[\leadsto \color{blue}{\frac{1 \cdot c}{(\left(\frac{c}{b} \cdot a\right) \cdot \frac{3}{2} + \left(\left(-b\right) - b\right))_*}}\]
- Recombined 3 regimes into one program.
Applied simplify10.3
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -6.238643463732416 \cdot 10^{+127}:\\
\;\;\;\;\frac{\frac{c}{b}}{\frac{3}{\frac{3}{2}}} - \frac{b + b}{a \cdot 3}\\
\mathbf{if}\;b \le 6.013511059956263 \cdot 10^{-15}:\\
\;\;\;\;\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)}}{3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{(\left(a \cdot \frac{c}{b}\right) \cdot \frac{3}{2} + \left(\left(-b\right) - b\right))_*}\\
\end{array}}\]