- Split input into 4 regimes
if b < -6.0941843680176984e51
Initial program 38.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 6.1
\[\leadsto \color{blue}{0.5 \cdot \frac{c}{b} - 0.66666666666666663 \cdot \frac{b}{a}}\]
Simplified6.1
\[\leadsto \color{blue}{\frac{c}{b} \cdot 0.5 - 0.66666666666666663 \cdot \frac{b}{a}}\]
if -6.0941843680176984e51 < b < -7.40818469346522838e-233
Initial program 9.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity9.1
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}\right)}}{3 \cdot a}\]
Applied times-frac9.3
\[\leadsto \color{blue}{\frac{1}{3} \cdot \frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a}}\]
Simplified9.2
\[\leadsto \frac{1}{3} \cdot \color{blue}{\frac{\sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)} + \left(-b\right)}{a}}\]
if -7.40818469346522838e-233 < b < 4.7963432278148011e75
Initial program 28.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied flip-+28.7
\[\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}\]
Simplified16.2
\[\leadsto \frac{\frac{\color{blue}{3 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}}{3 \cdot a}\]
Simplified16.1
\[\leadsto \frac{\frac{3 \cdot \left(a \cdot c\right)}{\color{blue}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity16.1
\[\leadsto \frac{\frac{3 \cdot \left(a \cdot c\right)}{\color{blue}{1 \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}\right)}}}{3 \cdot a}\]
Applied times-frac16.1
\[\leadsto \frac{\color{blue}{\frac{3}{1} \cdot \frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}}{3 \cdot a}\]
Applied times-frac16.0
\[\leadsto \color{blue}{\frac{\frac{3}{1}}{3} \cdot \frac{\frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}}\]
Simplified16.0
\[\leadsto \color{blue}{1} \cdot \frac{\frac{a \cdot c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}{a}\]
Simplified9.8
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(a \cdot c\right)}}}\]
if 4.7963432278148011e75 < b
Initial program 58.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 3.4
\[\leadsto \color{blue}{-0.5 \cdot \frac{c}{b}}\]
- Recombined 4 regimes into one program.
Final simplification7.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -6.0941843680176984 \cdot 10^{51}:\\
\;\;\;\;\frac{c}{b} \cdot 0.5 - 0.66666666666666663 \cdot \frac{b}{a}\\
\mathbf{elif}\;b \le -7.40818469346522838 \cdot 10^{-233}:\\
\;\;\;\;\frac{1}{3} \cdot \frac{\sqrt{b \cdot b - 3 \cdot \left(c \cdot a\right)} + \left(-b\right)}{a}\\
\mathbf{elif}\;b \le 4.7963432278148011 \cdot 10^{75}:\\
\;\;\;\;\frac{c}{\left(-b\right) - \sqrt{b \cdot b - 3 \cdot \left(c \cdot a\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot -0.5\\
\end{array}\]