- Split input into 4 regimes
if b < -1.2473100154318235e+154
Initial program 60.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification60.9
\[\leadsto \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}\]
Taylor expanded around -inf 2.7
\[\leadsto \color{blue}{\frac{-2}{3} \cdot \frac{b}{a}}\]
if -1.2473100154318235e+154 < b < 1.831482572891386e-225
Initial program 9.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification9.3
\[\leadsto \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}\]
- Using strategy
rm Applied div-sub9.3
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a} - \frac{b}{3 \cdot a}}\]
if 1.831482572891386e-225 < b < 1.5450320853015062e+145
Initial program 37.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification37.7
\[\leadsto \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}\]
- Using strategy
rm Applied flip--37.8
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b \cdot b}{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b}}}{3 \cdot a}\]
Applied associate-/l/41.3
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b \cdot b}{\left(3 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b\right)}}\]
Simplified20.5
\[\leadsto \frac{\color{blue}{\left(a \cdot c\right) \cdot \left(-3\right)}}{\left(3 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b\right)}\]
- Using strategy
rm Applied distribute-rgt-neg-out20.5
\[\leadsto \frac{\color{blue}{-\left(a \cdot c\right) \cdot 3}}{\left(3 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b\right)}\]
Applied distribute-frac-neg20.5
\[\leadsto \color{blue}{-\frac{\left(a \cdot c\right) \cdot 3}{\left(3 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b\right)}}\]
Simplified8.0
\[\leadsto -\color{blue}{\frac{1 \cdot c}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 3} + b}}\]
if 1.5450320853015062e+145 < b
Initial program 62.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification62.1
\[\leadsto \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}\]
- Using strategy
rm Applied flip--62.1
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b \cdot b}{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b}}}{3 \cdot a}\]
Applied associate-/l/62.1
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b \cdot b}{\left(3 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b\right)}}\]
Simplified35.9
\[\leadsto \frac{\color{blue}{\left(a \cdot c\right) \cdot \left(-3\right)}}{\left(3 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b\right)}\]
- Using strategy
rm Applied times-frac35.6
\[\leadsto \color{blue}{\frac{a \cdot c}{3 \cdot a} \cdot \frac{-3}{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b}}\]
Simplified35.4
\[\leadsto \color{blue}{\frac{c}{3}} \cdot \frac{-3}{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b}\]
Taylor expanded around inf 1.7
\[\leadsto \frac{c}{3} \cdot \color{blue}{\frac{\frac{-3}{2}}{b}}\]
- Recombined 4 regimes into one program.
Final simplification6.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.2473100154318235 \cdot 10^{+154}:\\
\;\;\;\;\frac{-2}{3} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le 1.831482572891386 \cdot 10^{-225}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c}}{a \cdot 3} - \frac{b}{a \cdot 3}\\
\mathbf{elif}\;b \le 1.5450320853015062 \cdot 10^{+145}:\\
\;\;\;\;\frac{-c}{b + \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{-3}{2}}{b} \cdot \frac{c}{3}\\
\end{array}\]