- Split input into 4 regimes
if b < -3.6001997150533654e+84
Initial program 57.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 40.6
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify3.2
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
if -3.6001997150533654e+84 < b < -6.488467728451246e-240
Initial program 33.1
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num33.1
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}\]
- Using strategy
rm Applied flip--33.3
\[\leadsto \frac{1}{\frac{2 \cdot a}{\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)}}}}}\]
Applied associate-/r/33.3
\[\leadsto \frac{1}{\color{blue}{\frac{2 \cdot a}{\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)}} \cdot \left(\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}}\]
Applied simplify7.9
\[\leadsto \frac{1}{\color{blue}{\left(\frac{2}{c} \cdot \frac{1}{4}\right)} \cdot \left(\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}\]
if -6.488467728451246e-240 < b < 1.1779074516142094e+154
Initial program 9.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub9.8
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
if 1.1779074516142094e+154 < b
Initial program 60.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num60.9
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}\]
Taylor expanded around inf 10.7
\[\leadsto \frac{1}{\frac{2 \cdot a}{\left(-b\right) - \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}}\]
Applied simplify2.3
\[\leadsto \color{blue}{\frac{\frac{a \cdot 2}{\frac{b}{c}} - \left(b + b\right)}{a \cdot 2}}\]
- Recombined 4 regimes into one program.
Applied simplify6.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -3.6001997150533654 \cdot 10^{+84}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{if}\;b \le -6.488467728451246 \cdot 10^{-240}:\\
\;\;\;\;\frac{1}{\left(\frac{2}{c} \cdot \frac{1}{4}\right) \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}\right)}\\
\mathbf{if}\;b \le 1.1779074516142094 \cdot 10^{+154}:\\
\;\;\;\;\frac{-b}{a \cdot 2} - \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{a \cdot 2}{\frac{b}{c}} - \left(b + b\right)}{a \cdot 2}\\
\end{array}}\]