- Split input into 3 regimes
if b < -2.042858470713346e-160
Initial program 50.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification50.0
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 12.8
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified12.8
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -2.042858470713346e-160 < b < 9.271363032678826e+122
Initial program 11.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification11.0
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied add-cube-cbrt11.5
\[\leadsto \frac{\left(-b\right) - \sqrt{\color{blue}{\left(\sqrt[3]{b \cdot b + -4 \cdot \left(a \cdot c\right)} \cdot \sqrt[3]{b \cdot b + -4 \cdot \left(a \cdot c\right)}\right) \cdot \sqrt[3]{b \cdot b + -4 \cdot \left(a \cdot c\right)}}}}{2 \cdot a}\]
if 9.271363032678826e+122 < b
Initial program 49.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification49.7
\[\leadsto \frac{\left(-b\right) - \sqrt{b \cdot b + -4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 3.0
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 3 regimes into one program.
Final simplification10.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.042858470713346 \cdot 10^{-160}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le 9.271363032678826 \cdot 10^{+122}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{\sqrt[3]{\left(c \cdot a\right) \cdot -4 + b \cdot b} \cdot \left(\sqrt[3]{\left(c \cdot a\right) \cdot -4 + b \cdot b} \cdot \sqrt[3]{\left(c \cdot a\right) \cdot -4 + b \cdot b}\right)}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]