- Split input into 4 regimes
if (- b) < -1.6564287285243543e+130
Initial program 51.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 10.5
\[\leadsto \frac{\color{blue}{2 \cdot \frac{c \cdot a}{b} - 2 \cdot b}}{2 \cdot a}\]
Applied simplify3.0
\[\leadsto \color{blue}{\frac{c}{b} \cdot 1 - \frac{b}{a}}\]
if -1.6564287285243543e+130 < (- b) < 2.3410290397911453e-217
Initial program 9.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num9.7
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}\]
if 2.3410290397911453e-217 < (- b) < 1.3229040377013218e+58
Initial program 33.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--33.5
\[\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 simplify17.5
\[\leadsto \frac{\frac{\color{blue}{\left(c \cdot a\right) \cdot 4}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
Applied simplify17.5
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot 4}{\color{blue}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}{2 \cdot a}\]
- Using strategy
rm Applied add-cube-cbrt18.2
\[\leadsto \color{blue}{\left(\sqrt[3]{\frac{\frac{\left(c \cdot a\right) \cdot 4}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}{2 \cdot a}} \cdot \sqrt[3]{\frac{\frac{\left(c \cdot a\right) \cdot 4}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}{2 \cdot a}}\right) \cdot \sqrt[3]{\frac{\frac{\left(c \cdot a\right) \cdot 4}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}{2 \cdot a}}}\]
Applied simplify18.2
\[\leadsto \color{blue}{\left(\sqrt[3]{\frac{\frac{c}{2} \cdot \frac{4}{1}}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}} \cdot \sqrt[3]{\frac{\frac{c}{2} \cdot \frac{4}{1}}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}}\right)} \cdot \sqrt[3]{\frac{\frac{\left(c \cdot a\right) \cdot 4}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}{2 \cdot a}}\]
Applied simplify8.9
\[\leadsto \left(\sqrt[3]{\frac{\frac{c}{2} \cdot \frac{4}{1}}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}} \cdot \sqrt[3]{\frac{\frac{c}{2} \cdot \frac{4}{1}}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}}\right) \cdot \color{blue}{\sqrt[3]{\frac{c \cdot \left(1 \cdot \frac{4}{2}\right)}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}}}\]
- Using strategy
rm Applied add-exp-log9.9
\[\leadsto \left(\sqrt[3]{\frac{\frac{c}{2} \cdot \frac{4}{1}}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}} \cdot \sqrt[3]{\frac{\frac{c}{2} \cdot \frac{4}{1}}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}}\right) \cdot \sqrt[3]{\frac{c \cdot \left(1 \cdot \frac{4}{2}\right)}{\color{blue}{e^{\log \left(\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}\right)}} - b}}\]
- Using strategy
rm Applied add-exp-log10.6
\[\leadsto \left(\sqrt[3]{\frac{\frac{c}{2} \cdot \frac{4}{1}}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}} \cdot \sqrt[3]{\frac{\frac{c}{2} \cdot \frac{4}{1}}{\color{blue}{e^{\log \left(\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}\right)}} - b}}\right) \cdot \sqrt[3]{\frac{c \cdot \left(1 \cdot \frac{4}{2}\right)}{e^{\log \left(\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}\right)} - b}}\]
if 1.3229040377013218e+58 < (- b)
Initial program 57.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 41.7
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify3.5
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
- Recombined 4 regimes into one program.
Applied simplify7.3
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -1.6564287285243543 \cdot 10^{+130}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{if}\;-b \le 2.3410290397911453 \cdot 10^{-217}:\\
\;\;\;\;\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}\\
\mathbf{if}\;-b \le 1.3229040377013218 \cdot 10^{+58}:\\
\;\;\;\;\left(\sqrt[3]{\frac{\frac{c}{2} \cdot 4}{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} - b}} \cdot \sqrt[3]{\frac{\frac{c}{2} \cdot 4}{e^{\log \left(\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)} - b}}\right) \cdot \sqrt[3]{\frac{\frac{4}{2} \cdot c}{e^{\log \left(\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)} - b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{b}\\
\end{array}}\]