- Split input into 4 regimes
if b < -1.9979183584340477e+120
Initial program 50.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 2.7
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify2.7
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -1.9979183584340477e+120 < b < 1.021266047469986e-281
Initial program 9.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv9.6
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{1}{2 \cdot a}}\]
if 1.021266047469986e-281 < b < 3.7208207919097225e+36
Initial program 29.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+29.9
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}{2 \cdot a}\]
Applied simplify17.9
\[\leadsto \frac{\frac{\color{blue}{\left(4 \cdot c\right) \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}\]
if 3.7208207919097225e+36 < b
Initial program 56.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 42.5
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{a \cdot c}{b}\right)}}{2 \cdot a}\]
Applied simplify4.0
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
- Recombined 4 regimes into one program.
Applied simplify8.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -1.9979183584340477 \cdot 10^{+120}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{if}\;b \le 1.021266047469986 \cdot 10^{-281}:\\
\;\;\;\;\frac{1}{2 \cdot a} \cdot \left(\sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)} + \left(-b\right)\right)\\
\mathbf{if}\;b \le 3.7208207919097225 \cdot 10^{+36}:\\
\;\;\;\;\frac{\frac{\left(c \cdot 4\right) \cdot a}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}}\]