- Split input into 4 regimes
if b < -4.352627690078744e+48 or -2.0089291940149467e-121 < b < -1.1884183040588929e-133
Initial program 55.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 43.2
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify4.8
\[\leadsto \color{blue}{0 - \frac{\frac{c}{b}}{1}}\]
if -4.352627690078744e+48 < b < -2.0089291940149467e-121
Initial program 37.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--37.7
\[\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 simplify15.3
\[\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}\]
Applied simplify15.3
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot 4}{\color{blue}{\sqrt{(\left(4 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}}}{2 \cdot a}\]
if -1.1884183040588929e-133 < b < 6.832382137151648e+104
Initial program 12.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied clear-num12.3
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}}\]
if 6.832382137151648e+104 < b
Initial program 46.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 9.4
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify3.5
\[\leadsto \color{blue}{\frac{\frac{2 \cdot a}{\frac{b}{c}} - \left(b + b\right)}{2 \cdot a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -4.352627690078744 \cdot 10^{+48}:\\
\;\;\;\;\frac{\frac{-c}{b}}{1}\\
\mathbf{if}\;b \le -2.0089291940149467 \cdot 10^{-121}:\\
\;\;\;\;\frac{\frac{\left(a \cdot c\right) \cdot 4}{\sqrt{(\left(a \cdot 4\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}}{a \cdot 2}\\
\mathbf{if}\;b \le -1.1884183040588929 \cdot 10^{-133}:\\
\;\;\;\;\frac{\frac{-c}{b}}{1}\\
\mathbf{if}\;b \le 6.832382137151648 \cdot 10^{+104}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 2}{\left(-b\right) - \sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{a \cdot 2}{\frac{b}{c}} - \left(b + b\right)}{a \cdot 2}\\
\end{array}}\]