- Split input into 4 regimes
if (- b) < -1.0797842006562954e+22
Initial program 55.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 44.4
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify5.1
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
if -1.0797842006562954e+22 < (- b) < -4.1276320648020044e-276
Initial program 29.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+29.3
\[\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 simplify18.2
\[\leadsto \frac{\frac{\color{blue}{\left(c \cdot a\right) \cdot 4}}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
if -4.1276320648020044e-276 < (- b) < 2.4256435844212706e+72
Initial program 9.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num9.7
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}\]
Applied simplify9.7
\[\leadsto \frac{1}{\color{blue}{\frac{a \cdot 2}{\sqrt{b \cdot b - a \cdot \left(c \cdot 4\right)} - b}}}\]
if 2.4256435844212706e+72 < (- b)
Initial program 39.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 5.1
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify5.1
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -1.0797842006562954 \cdot 10^{+22}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le -4.1276320648020044 \cdot 10^{-276}:\\
\;\;\;\;\frac{\frac{4 \cdot \left(a \cdot c\right)}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{a \cdot 2}\\
\mathbf{if}\;-b \le 2.4256435844212706 \cdot 10^{+72}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 2}{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{b}{a}\\
\end{array}}\]