- Split input into 4 regimes
if (- b) < -2.6763214650448188e+138
Initial program 61.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify61.1
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
Taylor expanded around inf 39.6
\[\leadsto \frac{\color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)} - b}{2 \cdot a}\]
Applied simplify1.6
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -2.6763214650448188e+138 < (- b) < -6.248469593546225e-273
Initial program 34.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify34.1
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
- Using strategy
rm Applied clear-num34.1
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}\]
- Using strategy
rm Applied flip--34.2
\[\leadsto \frac{1}{\frac{2 \cdot a}{\color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} \cdot \sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b \cdot b}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b}}}}\]
Applied associate-/r/34.3
\[\leadsto \frac{1}{\color{blue}{\frac{2 \cdot a}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} \cdot \sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b \cdot b} \cdot \left(\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b\right)}}\]
Applied simplify8.1
\[\leadsto \frac{1}{\color{blue}{\frac{2}{\frac{-4}{\frac{1}{c}}}} \cdot \left(\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b\right)}\]
- Using strategy
rm Applied add-sqr-sqrt8.3
\[\leadsto \frac{1}{\frac{2}{\frac{-4}{\frac{1}{c}}} \cdot \color{blue}{\left(\sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b} \cdot \sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b}\right)}}\]
Applied associate-*r*8.3
\[\leadsto \frac{1}{\color{blue}{\left(\frac{2}{\frac{-4}{\frac{1}{c}}} \cdot \sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b}\right) \cdot \sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b}}}\]
Applied simplify8.3
\[\leadsto \frac{1}{\color{blue}{\left(\sqrt{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} + b} \cdot \frac{\frac{2}{c}}{-4}\right)} \cdot \sqrt{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b}}\]
if -6.248469593546225e-273 < (- b) < 6.0685917336100174e+94
Initial program 9.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify9.3
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
- Using strategy
rm Applied div-inv9.4
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b\right) \cdot \frac{1}{2 \cdot a}}\]
if 6.0685917336100174e+94 < (- b)
Initial program 44.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify44.0
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
Taylor expanded around -inf 10.0
\[\leadsto \frac{\color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)} - b}{2 \cdot a}\]
Applied simplify3.8
\[\leadsto \color{blue}{\frac{c}{b} \cdot 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 -2.6763214650448188 \cdot 10^{+138}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{if}\;-b \le -6.248469593546225 \cdot 10^{-273}:\\
\;\;\;\;\frac{1}{\sqrt{b + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}} \cdot \left(\frac{\frac{2}{c}}{-4} \cdot \sqrt{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} + b}\right)}\\
\mathbf{if}\;-b \le 6.0685917336100174 \cdot 10^{+94}:\\
\;\;\;\;\left(\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b\right) \cdot \frac{1}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b + b}{2 \cdot a}\\
\end{array}}\]