- Split input into 4 regimes
if b < -2.623859433190926e+148
Initial program 59.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 2.4
\[\leadsto \color{blue}{\frac{-2}{3} \cdot \frac{b}{a}}\]
if -2.623859433190926e+148 < b < -3.242988518190772e-273
Initial program 8.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied clear-num8.6
\[\leadsto \color{blue}{\frac{1}{\frac{3 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}\]
if -3.242988518190772e-273 < b < 8.704642209760078e+104
Initial program 31.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+32.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/36.3
\[\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)}}\]
Simplified20.2
\[\leadsto \frac{\color{blue}{c \cdot \left(a \cdot 3\right)}}{\left(3 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}\]
- Using strategy
rm Applied associate-/r*15.1
\[\leadsto \color{blue}{\frac{\frac{c \cdot \left(a \cdot 3\right)}{3 \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
- Using strategy
rm Applied times-frac9.0
\[\leadsto \frac{\color{blue}{\frac{c}{3} \cdot \frac{a \cdot 3}{a}}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Simplified8.9
\[\leadsto \frac{\frac{c}{3} \cdot \color{blue}{3}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
if 8.704642209760078e+104 < b
Initial program 59.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+59.4
\[\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/59.5
\[\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)}}\]
Simplified32.8
\[\leadsto \frac{\color{blue}{c \cdot \left(a \cdot 3\right)}}{\left(3 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}\]
- Using strategy
rm Applied associate-/r*32.2
\[\leadsto \color{blue}{\frac{\frac{c \cdot \left(a \cdot 3\right)}{3 \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
- Using strategy
rm Applied times-frac31.7
\[\leadsto \frac{\color{blue}{\frac{c}{3} \cdot \frac{a \cdot 3}{a}}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Simplified31.7
\[\leadsto \frac{\frac{c}{3} \cdot \color{blue}{3}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Taylor expanded around inf 6.9
\[\leadsto \frac{\frac{c}{3} \cdot 3}{\color{blue}{\frac{3}{2} \cdot \frac{c \cdot a}{b} - 2 \cdot b}}\]
- Recombined 4 regimes into one program.
Final simplification7.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.623859433190926 \cdot 10^{+148}:\\
\;\;\;\;\frac{-2}{3} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le -3.242988518190772 \cdot 10^{-273}:\\
\;\;\;\;\frac{1}{\frac{3 \cdot a}{\sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)} + \left(-b\right)}}\\
\mathbf{elif}\;b \le 8.704642209760078 \cdot 10^{+104}:\\
\;\;\;\;\frac{\frac{c}{3} \cdot 3}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(3 \cdot a\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{c}{3} \cdot 3}{\frac{3}{2} \cdot \frac{c \cdot a}{b} - b \cdot 2}\\
\end{array}\]