- Split input into 4 regimes
if b < -9.578447241049947e+97
Initial program 43.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*43.0
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3}}{a}}\]
- Using strategy
rm Applied div-inv43.1
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3} \cdot \frac{1}{a}}\]
Taylor expanded around -inf 4.5
\[\leadsto \color{blue}{\frac{-2}{3} \cdot \frac{b}{a}}\]
if -9.578447241049947e+97 < b < 7.474732290308126e-62
Initial program 13.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*13.3
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3}}{a}}\]
- Using strategy
rm Applied div-inv13.4
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3} \cdot \frac{1}{a}}\]
if 7.474732290308126e-62 < b < 5.361127884469133e+127
Initial program 44.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity44.7
\[\leadsto \frac{\left(-b\right) + \color{blue}{1 \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{3 \cdot a}\]
Applied *-un-lft-identity44.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(-b\right)} + 1 \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Applied distribute-lft-out44.7
\[\leadsto \frac{\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-frac44.7
\[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a}}\]
Simplified44.7
\[\leadsto \color{blue}{\frac{1}{3}} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a}\]
Simplified44.7
\[\leadsto \frac{1}{3} \cdot \color{blue}{\frac{\sqrt{(\left(-3 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} - b}{a}}\]
- Using strategy
rm Applied flip--44.8
\[\leadsto \frac{1}{3} \cdot \frac{\color{blue}{\frac{\sqrt{(\left(-3 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} \cdot \sqrt{(\left(-3 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} - b \cdot b}{\sqrt{(\left(-3 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} + b}}}{a}\]
Applied associate-/l/46.7
\[\leadsto \frac{1}{3} \cdot \color{blue}{\frac{\sqrt{(\left(-3 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} \cdot \sqrt{(\left(-3 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} - b \cdot b}{a \cdot \left(\sqrt{(\left(-3 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} + b\right)}}\]
Simplified13.9
\[\leadsto \frac{1}{3} \cdot \frac{\color{blue}{\left(-3 \cdot a\right) \cdot c}}{a \cdot \left(\sqrt{(\left(-3 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} + b\right)}\]
if 5.361127884469133e+127 < b
Initial program 60.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 14.4
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}}{3 \cdot a}\]
- Recombined 4 regimes into one program.
Final simplification12.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -9.578447241049947 \cdot 10^{+97}:\\
\;\;\;\;\frac{-2}{3} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le 7.474732290308126 \cdot 10^{-62}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)}}{3}\\
\mathbf{elif}\;b \le 5.361127884469133 \cdot 10^{+127}:\\
\;\;\;\;\frac{1}{3} \cdot \frac{c \cdot \left(a \cdot -3\right)}{\left(\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} + b\right) \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}{3 \cdot a}\\
\end{array}\]