- Split input into 3 regimes
if b < -1.7570560333088676e+134
Initial program 53.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*53.4
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3}}{a}}\]
Taylor expanded around -inf 3.4
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b} - \frac{2}{3} \cdot \frac{b}{a}}\]
if -1.7570560333088676e+134 < b < 1.701885057653478e-61
Initial program 13.1
\[\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.1
\[\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 associate-/l/13.1
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a \cdot 3}}\]
Simplified13.1
\[\leadsto \frac{\color{blue}{\sqrt{\left(a \cdot -3\right) \cdot c + b \cdot b} - b}}{a \cdot 3}\]
if 1.701885057653478e-61 < b
Initial program 52.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*52.9
\[\leadsto \color{blue}{\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3}}{a}}\]
Taylor expanded around inf 8.7
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.7570560333088676 \cdot 10^{+134}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b} - \frac{b}{a} \cdot \frac{2}{3}\\
\mathbf{elif}\;b \le 1.701885057653478 \cdot 10^{-61}:\\
\;\;\;\;\frac{\sqrt{b \cdot b + c \cdot \left(-3 \cdot a\right)} - b}{3 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b}\\
\end{array}\]