- Split input into 4 regimes
if (- b) < -6.7629149110831946e+72
Initial program 57.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 41.2
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify2.5
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -6.7629149110831946e+72 < (- b) < -1.8650661752247295e-269
Initial program 32.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+32.7
\[\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.0
\[\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}\]
Applied simplify17.0
\[\leadsto \frac{\frac{\left(4 \cdot c\right) \cdot a}{\color{blue}{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num17.2
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\frac{\left(4 \cdot c\right) \cdot a}{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}}}}\]
Applied simplify9.1
\[\leadsto \frac{1}{\color{blue}{\left(-\frac{\frac{1}{2}}{c}\right) \cdot \left(\sqrt{(a \cdot \left(-4 \cdot c\right) + \left(b \cdot b\right))_*} + b\right)}}\]
if -1.8650661752247295e-269 < (- b) < 1.80809249792908e+139
Initial program 8.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv9.1
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
Applied simplify9.1
\[\leadsto \left(\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right) \cdot \color{blue}{\frac{\frac{1}{2}}{a}}\]
if 1.80809249792908e+139 < (- b)
Initial program 55.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 10.9
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify3.3
\[\leadsto \color{blue}{\frac{\frac{c}{b}}{1} - \frac{b + b}{2 \cdot a}}\]
- Recombined 4 regimes into one program.
Applied simplify6.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -6.7629149110831946 \cdot 10^{+72}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{if}\;-b \le -1.8650661752247295 \cdot 10^{-269}:\\
\;\;\;\;\frac{1}{\left(b + \sqrt{(a \cdot \left(-4 \cdot c\right) + \left(b \cdot b\right))_*}\right) \cdot \frac{\frac{-1}{2}}{c}}\\
\mathbf{if}\;-b \le 1.80809249792908 \cdot 10^{+139}:\\
\;\;\;\;\left(\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} + \left(-b\right)\right) \cdot \frac{\frac{1}{2}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b + b}{a \cdot 2}\\
\end{array}}\]