- Split input into 4 regimes
if (- b) < -1.6832067822592606e+149
Initial program 62.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 40.0
\[\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}{\left(-1\right) \cdot \frac{c}{b}}\]
if -1.6832067822592606e+149 < (- b) < -2.0635978357930732e-191
Initial program 37.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{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 - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}{2 \cdot a}\]
Applied simplify15.1
\[\leadsto \frac{\frac{\color{blue}{c \cdot \left(a \cdot 4\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}\]
- Using strategy
rm Applied add-cube-cbrt15.8
\[\leadsto \color{blue}{\left(\sqrt[3]{\frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}} \cdot \sqrt[3]{\frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}}\right) \cdot \sqrt[3]{\frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}}}\]
Applied simplify15.7
\[\leadsto \color{blue}{\left(\sqrt[3]{\frac{\left(c \cdot 4\right) \cdot \frac{1}{2}}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}} \cdot \sqrt[3]{\frac{\left(c \cdot 4\right) \cdot \frac{1}{2}}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}}\right)} \cdot \sqrt[3]{\frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}}\]
Applied simplify7.4
\[\leadsto \left(\sqrt[3]{\frac{\left(c \cdot 4\right) \cdot \frac{1}{2}}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}} \cdot \sqrt[3]{\frac{\left(c \cdot 4\right) \cdot \frac{1}{2}}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}}\right) \cdot \color{blue}{\sqrt[3]{\frac{\frac{1}{2} \cdot \left(c \cdot 4\right)}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}}}\]
- Using strategy
rm Applied add-exp-log8.6
\[\leadsto \left(\sqrt[3]{\frac{\left(c \cdot 4\right) \cdot \frac{1}{2}}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}} \cdot \sqrt[3]{\frac{\left(c \cdot 4\right) \cdot \frac{1}{2}}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}}\right) \cdot \sqrt[3]{\frac{\frac{1}{2} \cdot \left(c \cdot 4\right)}{\left(-b\right) - \color{blue}{e^{\log \left(\sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}\right)}}}}\]
if -2.0635978357930732e-191 < (- b) < 2.9419353265912683e+86
Initial program 10.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
if 2.9419353265912683e+86 < (- b)
Initial program 42.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{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.6832067822592606 \cdot 10^{+149}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le -2.0635978357930732 \cdot 10^{-191}:\\
\;\;\;\;\left(\sqrt[3]{\frac{\left(4 \cdot c\right) \cdot \frac{1}{2}}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}} \cdot \sqrt[3]{\frac{\left(4 \cdot c\right) \cdot \frac{1}{2}}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}}\right) \cdot \sqrt[3]{\frac{\left(4 \cdot c\right) \cdot \frac{1}{2}}{\left(-b\right) - e^{\log \left(\sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}\right)}}}\\
\mathbf{if}\;-b \le 2.9419353265912683 \cdot 10^{+86}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{-b}{a}\\
\end{array}}\]