- Split input into 4 regimes
if b < -7.634208798105995e+111
Initial program 46.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify46.4
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
Taylor expanded around -inf 3.6
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify3.6
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -7.634208798105995e+111 < b < 1.830255897208847e-62
Initial program 12.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify12.8
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
- Using strategy
rm Applied div-inv12.9
\[\leadsto \color{blue}{\left(\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b\right) \cdot \frac{1}{2 \cdot a}}\]
if 1.830255897208847e-62 < b < 7.254129679093779e+96
Initial program 43.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify43.2
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
- Using strategy
rm Applied flip--43.3
\[\leadsto \frac{\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}}}{2 \cdot a}\]
Applied simplify15.6
\[\leadsto \frac{\frac{\color{blue}{\left(-4\right) \cdot \left(c \cdot a\right)}}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} + b}}{2 \cdot a}\]
if 7.254129679093779e+96 < b
Initial program 58.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify58.5
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}{2 \cdot a}}\]
Taylor expanded around inf 38.7
\[\leadsto \frac{\color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)} - b}{2 \cdot a}\]
Applied simplify2.9
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
- Recombined 4 regimes into one program.
Applied simplify9.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -7.634208798105995 \cdot 10^{+111}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{if}\;b \le 1.830255897208847 \cdot 10^{-62}:\\
\;\;\;\;\left(\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a} - b\right) \cdot \frac{1}{a \cdot 2}\\
\mathbf{if}\;b \le 7.254129679093779 \cdot 10^{+96}:\\
\;\;\;\;\frac{\frac{\left(-4\right) \cdot \left(c \cdot a\right)}{\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a} + b}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}}\]