- Split input into 4 regimes
if b < -7.739999686026577e+110
Initial program 46.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify46.6
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
Taylor expanded around -inf 9.6
\[\leadsto \frac{\color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)} - b}{2 \cdot a}\]
Applied simplify3.1
\[\leadsto \color{blue}{\frac{c}{b} \cdot 1 - \frac{b + b}{2 \cdot a}}\]
if -7.739999686026577e+110 < b < 4.308150604481148e-158
Initial program 10.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify10.4
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
- Using strategy
rm Applied clear-num10.6
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}\]
if 4.308150604481148e-158 < b < 1.643123946810858e+22
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 div-inv34.1
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--34.2
\[\leadsto \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}} \cdot \frac{1}{2 \cdot a}\]
Applied associate-*l/34.3
\[\leadsto \color{blue}{\frac{\left(\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\right) \cdot \frac{1}{2 \cdot a}}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b}}\]
Applied simplify16.4
\[\leadsto \frac{\color{blue}{\frac{\left(4 \cdot c\right) \cdot \left(-a\right) + 0}{2 \cdot a}}}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b}\]
if 1.643123946810858e+22 < b
Initial program 55.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify55.5
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
Taylor expanded around inf 44.0
\[\leadsto \frac{\color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)} - b}{2 \cdot a}\]
Applied simplify5.1
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
- Recombined 4 regimes into one program.
Applied simplify8.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -7.739999686026577 \cdot 10^{+110}:\\
\;\;\;\;\frac{c}{b} - \frac{b + b}{2 \cdot a}\\
\mathbf{if}\;b \le 4.308150604481148 \cdot 10^{-158}:\\
\;\;\;\;\frac{1}{\frac{2 \cdot a}{\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a} - b}}\\
\mathbf{if}\;b \le 1.643123946810858 \cdot 10^{+22}:\\
\;\;\;\;\frac{\frac{\left(-a\right) \cdot \left(c \cdot 4\right)}{2 \cdot a}}{\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a} + b}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}}\]