- Split input into 4 regimes
if b < -7.344987796431683e+150
Initial program 60.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 2.7
\[\leadsto \color{blue}{\frac{-2}{3} \cdot \frac{b}{a}}\]
if -7.344987796431683e+150 < b < 4.728715747220183e-304
Initial program 8.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied clear-num8.5
\[\leadsto \color{blue}{\frac{1}{\frac{3 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}}\]
if 4.728715747220183e-304 < b < 2.2043707357501494e+150
Initial program 34.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+34.9
\[\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.1
\[\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.9
\[\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)}\]
- Using strategy
rm Applied associate-/r*15.3
\[\leadsto \color{blue}{\frac{\frac{3 \cdot \left(c \cdot a\right)}{3 \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
- Using strategy
rm Applied times-frac15.1
\[\leadsto \frac{\color{blue}{\frac{3}{3} \cdot \frac{c \cdot a}{a}}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Simplified15.1
\[\leadsto \frac{\color{blue}{1} \cdot \frac{c \cdot a}{a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Simplified8.9
\[\leadsto \frac{1 \cdot \color{blue}{c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
if 2.2043707357501494e+150 < b
Initial program 62.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+62.5
\[\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/62.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)}}\]
Simplified36.4
\[\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)}\]
- Using strategy
rm Applied associate-/r*36.2
\[\leadsto \color{blue}{\frac{\frac{3 \cdot \left(c \cdot a\right)}{3 \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}\]
- Using strategy
rm Applied times-frac36.2
\[\leadsto \frac{\color{blue}{\frac{3}{3} \cdot \frac{c \cdot a}{a}}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Simplified36.2
\[\leadsto \frac{\color{blue}{1} \cdot \frac{c \cdot a}{a}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Simplified36.1
\[\leadsto \frac{1 \cdot \color{blue}{c}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}\]
Taylor expanded around inf 6.2
\[\leadsto \frac{1 \cdot c}{\left(-b\right) - \color{blue}{\left(b - \frac{3}{2} \cdot \frac{a \cdot c}{b}\right)}}\]
- Recombined 4 regimes into one program.
Final simplification7.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -7.344987796431683 \cdot 10^{+150}:\\
\;\;\;\;\frac{-2}{3} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le 4.728715747220183 \cdot 10^{-304}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 3}{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)}}}\\
\mathbf{elif}\;b \le 2.2043707357501494 \cdot 10^{+150}:\\
\;\;\;\;\frac{c}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(a \cdot 3\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{\left(-b\right) - \left(b - \frac{c \cdot a}{b} \cdot \frac{3}{2}\right)}\\
\end{array}\]