- Split input into 4 regimes
if b < -3.9154047919814403e+52
Initial program 36.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 6.1
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify6.1
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -3.9154047919814403e+52 < b < 2.3540708339747997e-217
Initial program 9.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num10.1
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}\]
Applied simplify10.1
\[\leadsto \frac{1}{\color{blue}{\frac{a \cdot 2}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}}}\]
if 2.3540708339747997e-217 < b < 3.607543696370626e+92
Initial program 35.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+35.7
\[\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 simplify16.2
\[\leadsto \frac{\frac{\color{blue}{c \cdot \left(a \cdot 4\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}\]
- Using strategy
rm Applied add-exp-log18.7
\[\leadsto \frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - \color{blue}{e^{\log \left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}}}}{2 \cdot a}\]
Taylor expanded around inf 40.0
\[\leadsto \frac{\frac{c \cdot \left(a \cdot 4\right)}{\left(-b\right) - e^{\log \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}}}{2 \cdot a}\]
Applied simplify28.7
\[\leadsto \color{blue}{\frac{\left(c \cdot 4\right) \cdot \frac{1}{2}}{\left(\left(-b\right) - b\right) + \frac{2 \cdot c}{\frac{b}{a}}}}\]
if 3.607543696370626e+92 < b
Initial program 58.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 40.4
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify2.3
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
- Recombined 4 regimes into one program.
Applied simplify12.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -3.9154047919814403 \cdot 10^{+52}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{if}\;b \le 2.3540708339747997 \cdot 10^{-217}:\\
\;\;\;\;\frac{1}{\frac{2 \cdot a}{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}}\\
\mathbf{if}\;b \le 3.607543696370626 \cdot 10^{+92}:\\
\;\;\;\;\frac{\left(c \cdot 4\right) \cdot \frac{1}{2}}{\frac{2 \cdot c}{\frac{b}{a}} + \left(\left(-b\right) - b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{b}\\
\end{array}}\]