- Split input into 4 regimes
if b < -3.2253779719569066e+106
Initial program 48.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification48.0
\[\leadsto \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}\]
Taylor expanded around -inf 4.3
\[\leadsto \color{blue}{\frac{-2}{3} \cdot \frac{b}{a}}\]
if -3.2253779719569066e+106 < b < -5.571754887817011e-297
Initial program 8.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification8.1
\[\leadsto \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}\]
- Using strategy
rm Applied clear-num8.2
\[\leadsto \color{blue}{\frac{1}{\frac{3 \cdot a}{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}}}\]
if -5.571754887817011e-297 < b < 3.0315580821352444e+148
Initial program 33.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Initial simplification33.3
\[\leadsto \frac{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}{3 \cdot a}\]
- Using strategy
rm Applied flip--33.4
\[\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/37.7
\[\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)}}\]
Simplified19.8
\[\leadsto \frac{\color{blue}{\left(-c\right) \cdot \left(3 \cdot a\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-lft-neg-out19.8
\[\leadsto \frac{\color{blue}{-c \cdot \left(3 \cdot a\right)}}{\left(3 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b\right)}\]
Applied distribute-frac-neg19.8
\[\leadsto \color{blue}{-\frac{c \cdot \left(3 \cdot a\right)}{\left(3 \cdot a\right) \cdot \left(\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} + b\right)}}\]
Simplified8.2
\[\leadsto -\color{blue}{\frac{\frac{c}{1}}{b + \sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c}}}\]
if 3.0315580821352444e+148 < 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 clear-num62.1
\[\leadsto \color{blue}{\frac{1}{\frac{3 \cdot a}{\sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c} - b}}}\]
Taylor expanded around 0 2.6
\[\leadsto \frac{1}{\color{blue}{-2 \cdot \frac{b}{c}}}\]
- Recombined 4 regimes into one program.
Final simplification6.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -3.2253779719569066 \cdot 10^{+106}:\\
\;\;\;\;\frac{-2}{3} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le -5.571754887817011 \cdot 10^{-297}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 3}{\sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c} - b}}\\
\mathbf{elif}\;b \le 3.0315580821352444 \cdot 10^{+148}:\\
\;\;\;\;\frac{-c}{b + \sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{-2 \cdot \frac{b}{c}}\\
\end{array}\]