- Split input into 4 regimes
if b < -1.477958937440894e+111
Initial program 48.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied *-commutative48.3
\[\leadsto \frac{\left(-b\right) + \sqrt{b \cdot b - \color{blue}{c \cdot \left(3 \cdot a\right)}}}{3 \cdot a}\]
Taylor expanded around -inf 3.4
\[\leadsto \color{blue}{\frac{-2}{3} \cdot \frac{b}{a}}\]
if -1.477958937440894e+111 < b < 2.2778896075318495e-112
Initial program 11.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*11.2
\[\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 11.2
\[\leadsto \frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \color{blue}{3 \cdot \left(a \cdot c\right)}}}{3}}{a}\]
if 2.2778896075318495e-112 < b < 1.0758189318997387e+133
Initial program 41.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*41.2
\[\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 41.2
\[\leadsto \frac{\frac{\left(-b\right) + \sqrt{b \cdot b - \color{blue}{3 \cdot \left(a \cdot c\right)}}}{3}}{a}\]
- Using strategy
rm Applied flip-+41.2
\[\leadsto \frac{\frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3}}{a}\]
Applied associate-/l/41.3
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{3 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}\right)}}}{a}\]
Simplified15.6
\[\leadsto \frac{\frac{\color{blue}{\left(c \cdot 3\right) \cdot a}}{3 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}\right)}}{a}\]
if 1.0758189318997387e+133 < b
Initial program 61.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 14.2
\[\leadsto \frac{\color{blue}{\frac{-3}{2} \cdot \frac{a \cdot c}{b}}}{3 \cdot a}\]
- Recombined 4 regimes into one program.
Final simplification11.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.477958937440894 \cdot 10^{+111}:\\
\;\;\;\;\frac{-2}{3} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le 2.2778896075318495 \cdot 10^{-112}:\\
\;\;\;\;\frac{\frac{\left(-b\right) + \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}{3}}{a}\\
\mathbf{elif}\;b \le 1.0758189318997387 \cdot 10^{+133}:\\
\;\;\;\;\frac{\frac{a \cdot \left(3 \cdot c\right)}{3 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}\right)}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{a \cdot c}{b} \cdot \frac{-3}{2}}{3 \cdot a}\\
\end{array}\]