- Split input into 4 regimes
if b < -2.655088126483261e+86
Initial program 42.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around -inf 3.9
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b} - \frac{2}{3} \cdot \frac{b}{a}}\]
Simplified3.9
\[\leadsto \color{blue}{(\frac{-2}{3} \cdot \left(\frac{b}{a}\right) + \left(\frac{c}{\frac{b}{\frac{1}{2}}}\right))_*}\]
if -2.655088126483261e+86 < b < 6.77405814712691e-205
Initial program 10.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*10.6
\[\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/10.6
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a \cdot 3}}\]
Simplified10.6
\[\leadsto \frac{\color{blue}{\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} - b}}{a \cdot 3}\]
if 6.77405814712691e-205 < b < 1.8920130318297846e+47
Initial program 33.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*33.4
\[\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/33.4
\[\leadsto \color{blue}{\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{a \cdot 3}}\]
Simplified33.4
\[\leadsto \frac{\color{blue}{\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} - b}}{a \cdot 3}\]
- Using strategy
rm Applied div-inv33.4
\[\leadsto \color{blue}{\left(\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} - b\right) \cdot \frac{1}{a \cdot 3}}\]
- Using strategy
rm Applied flip--33.5
\[\leadsto \color{blue}{\frac{\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} \cdot \sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} - b \cdot b}{\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} + b}} \cdot \frac{1}{a \cdot 3}\]
Applied associate-*l/33.5
\[\leadsto \color{blue}{\frac{\left(\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} \cdot \sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} - b \cdot b\right) \cdot \frac{1}{a \cdot 3}}{\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} + b}}\]
Simplified15.7
\[\leadsto \frac{\color{blue}{\frac{\left(a \cdot -3\right) \cdot c}{3 \cdot a}}}{\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} + b}\]
if 1.8920130318297846e+47 < b
Initial program 56.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
- Using strategy
rm Applied associate-/r*56.5
\[\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.6
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b}}\]
- Recombined 4 regimes into one program.
Final simplification8.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.655088126483261 \cdot 10^{+86}:\\
\;\;\;\;(\frac{-2}{3} \cdot \left(\frac{b}{a}\right) + \left(\frac{c}{\frac{b}{\frac{1}{2}}}\right))_*\\
\mathbf{elif}\;b \le 6.77405814712691 \cdot 10^{-205}:\\
\;\;\;\;\frac{\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} - b}{a \cdot 3}\\
\mathbf{elif}\;b \le 1.8920130318297846 \cdot 10^{+47}:\\
\;\;\;\;\frac{\frac{\left(a \cdot -3\right) \cdot c}{a \cdot 3}}{\sqrt{(\left(a \cdot -3\right) \cdot c + \left(b \cdot b\right))_*} + b}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} \cdot \frac{-1}{2}\\
\end{array}\]