- Split input into 4 regimes
if (- b) < -1.1400585299076612e+151
Initial program 62.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 40.1
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify1.4
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -1.1400585299076612e+151 < (- b) < -2.0635978357930732e-191
Initial program 37.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+37.6
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} \cdot \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}{2 \cdot a}\]
Applied simplify15.2
\[\leadsto \frac{\frac{\color{blue}{\left(4 \cdot c\right) \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
- Using strategy
rm Applied add-cube-cbrt15.8
\[\leadsto \frac{\frac{\left(4 \cdot c\right) \cdot a}{\color{blue}{\left(\sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}} \cdot \sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}\right) \cdot \sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}}{2 \cdot a}\]
Applied times-frac14.7
\[\leadsto \frac{\color{blue}{\frac{4 \cdot c}{\sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}} \cdot \sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}} \cdot \frac{a}{\sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}}{2 \cdot a}\]
Applied times-frac8.3
\[\leadsto \color{blue}{\frac{\frac{4 \cdot c}{\sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}} \cdot \sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}{2} \cdot \frac{\frac{a}{\sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}{a}}\]
Applied simplify7.4
\[\leadsto \frac{\frac{4 \cdot c}{\sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}} \cdot \sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}{2} \cdot \color{blue}{\frac{1}{\sqrt[3]{\left(-b\right) - \sqrt{(\left(c \cdot a\right) \cdot \left(-4\right) + \left(b \cdot b\right))_*}}}}\]
- Using strategy
rm Applied add-exp-log8.6
\[\leadsto \frac{\frac{4 \cdot c}{\sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}} \cdot \sqrt[3]{\left(-b\right) - \color{blue}{e^{\log \left(\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}}}}}{2} \cdot \frac{1}{\sqrt[3]{\left(-b\right) - \sqrt{(\left(c \cdot a\right) \cdot \left(-4\right) + \left(b \cdot b\right))_*}}}\]
if -2.0635978357930732e-191 < (- b) < 2.9419353265912683e+86
Initial program 10.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
if 2.9419353265912683e+86 < (- b)
Initial program 42.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 4.4
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify4.4
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify7.3
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -1.1400585299076612 \cdot 10^{+151}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le -2.0635978357930732 \cdot 10^{-191}:\\
\;\;\;\;\frac{1}{\sqrt[3]{\left(-b\right) - \sqrt{(\left(a \cdot c\right) \cdot \left(-4\right) + \left(b \cdot b\right))_*}}} \cdot \frac{\frac{4 \cdot c}{\sqrt[3]{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}} \cdot \sqrt[3]{\left(-b\right) - e^{\log \left(\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}}}}{2}\\
\mathbf{if}\;-b \le 2.9419353265912683 \cdot 10^{+86}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;-\frac{b}{a}\\
\end{array}}\]