- Split input into 3 regimes
if b < -4.27256945422052e+78
Initial program 41.7
\[\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.7
\[\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 pow141.7
\[\leadsto \frac{\frac{\left(-b\right) + \sqrt{\color{blue}{{\left(b \cdot b - \left(3 \cdot a\right) \cdot c\right)}^{1}}}}{3}}{a}\]
Applied sqrt-pow141.7
\[\leadsto \frac{\frac{\left(-b\right) + \color{blue}{{\left(b \cdot b - \left(3 \cdot a\right) \cdot c\right)}^{\left(\frac{1}{2}\right)}}}{3}}{a}\]
Simplified41.7
\[\leadsto \frac{\frac{\left(-b\right) + {\color{blue}{\left((b \cdot b + \left(a \cdot \left(c \cdot -3\right)\right))_*\right)}}^{\left(\frac{1}{2}\right)}}{3}}{a}\]
Taylor expanded around -inf 5.0
\[\leadsto \frac{\frac{\color{blue}{-2 \cdot b}}{3}}{a}\]
Simplified5.0
\[\leadsto \frac{\frac{\color{blue}{-2 \cdot b}}{3}}{a}\]
if -4.27256945422052e+78 < b < 2.0666642659220244e-112
Initial program 11.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*11.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 pow111.4
\[\leadsto \frac{\frac{\left(-b\right) + \sqrt{\color{blue}{{\left(b \cdot b - \left(3 \cdot a\right) \cdot c\right)}^{1}}}}{3}}{a}\]
Applied sqrt-pow111.4
\[\leadsto \frac{\frac{\left(-b\right) + \color{blue}{{\left(b \cdot b - \left(3 \cdot a\right) \cdot c\right)}^{\left(\frac{1}{2}\right)}}}{3}}{a}\]
Simplified11.4
\[\leadsto \frac{\frac{\left(-b\right) + {\color{blue}{\left((b \cdot b + \left(a \cdot \left(c \cdot -3\right)\right))_*\right)}}^{\left(\frac{1}{2}\right)}}{3}}{a}\]
if 2.0666642659220244e-112 < b
Initial program 51.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(3 \cdot a\right) \cdot c}}{3 \cdot a}\]
Taylor expanded around inf 10.9
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -4.27256945422052 \cdot 10^{+78}:\\
\;\;\;\;\frac{\frac{-2 \cdot b}{3}}{a}\\
\mathbf{elif}\;b \le 2.0666642659220244 \cdot 10^{-112}:\\
\;\;\;\;\frac{\frac{{\left((b \cdot b + \left(\left(-3 \cdot c\right) \cdot a\right))_*\right)}^{\frac{1}{2}} + \left(-b\right)}{3}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b}\\
\end{array}\]