- Split input into 4 regimes
if b < -1.0593974114674551e+154
Initial program 60.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 2.8
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b} - \frac{2}{3} \cdot \frac{b}{a}}\]
if -1.0593974114674551e+154 < b < 3.3018599764394035e-162
Initial program 10.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 10.5
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{b}^{2} - 3 \cdot \left(a \cdot c\right)}}}{3 \cdot a}\]
if 3.3018599764394035e-162 < b < 9.101978235945472e-64 or 6.947376908923824e-19 < b
Initial program 50.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 12.5
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b}}\]
if 9.101978235945472e-64 < b < 6.947376908923824e-19
Initial program 36.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+37.0
\[\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 associate-/l/39.9
\[\leadsto \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(3 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}\]
Simplified18.0
\[\leadsto \frac{\color{blue}{3 \cdot \left(c \cdot a\right)}}{\left(3 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}\]
- Recombined 4 regimes into one program.
Final simplification10.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.0593974114674551 \cdot 10^{+154}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b} - \frac{b}{a} \cdot \frac{2}{3}\\
\mathbf{elif}\;b \le 3.3018599764394035 \cdot 10^{-162}:\\
\;\;\;\;\frac{\sqrt{{b}^{2} - 3 \cdot \left(c \cdot a\right)} + \left(-b\right)}{a \cdot 3}\\
\mathbf{elif}\;b \le 9.101978235945472 \cdot 10^{-64} \lor \neg \left(b \le 6.947376908923824 \cdot 10^{-19}\right):\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b}\\
\mathbf{else}:\\
\;\;\;\;\frac{3 \cdot \left(c \cdot a\right)}{\left(a \cdot 3\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(a \cdot 3\right) \cdot c}\right)}\\
\end{array}\]