- Split input into 3 regimes
if b/2 < -6.974405503731355e-42
Initial program 54.2
\[\frac{\left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
- Using strategy
rm Applied clear-num54.2
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c}}}}\]
- Using strategy
rm Applied flip--54.3
\[\leadsto \frac{1}{\frac{a}{\color{blue}{\frac{\left(-b/2\right) \cdot \left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c} \cdot \sqrt{b/2 \cdot b/2 - a \cdot c}}{\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}}}}}\]
Applied associate-/r/54.3
\[\leadsto \frac{1}{\color{blue}{\frac{a}{\left(-b/2\right) \cdot \left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c} \cdot \sqrt{b/2 \cdot b/2 - a \cdot c}} \cdot \left(\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}\right)}}\]
Applied simplify24.1
\[\leadsto \frac{1}{\color{blue}{\frac{a}{c \cdot a}} \cdot \left(\left(-b/2\right) + \sqrt{b/2 \cdot b/2 - a \cdot c}\right)}\]
Taylor expanded around -inf 13.2
\[\leadsto \frac{1}{\frac{a}{c \cdot a} \cdot \left(\left(-b/2\right) + \color{blue}{\left(\frac{1}{2} \cdot \frac{c \cdot a}{b/2} - b/2\right)}\right)}\]
Applied simplify7.0
\[\leadsto \color{blue}{\frac{1 \cdot c}{\frac{\frac{1}{2} \cdot c}{\frac{b/2}{a}} - \left(b/2 + b/2\right)}}\]
if -6.974405503731355e-42 < b/2 < 6.814766808373949e+121
Initial program 14.0
\[\frac{\left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
- Using strategy
rm Applied clear-num14.1
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c}}}}\]
if 6.814766808373949e+121 < b/2
Initial program 49.8
\[\frac{\left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c}}{a}\]
Taylor expanded around inf 2.7
\[\leadsto \color{blue}{-2 \cdot \frac{b/2}{a}}\]
- Recombined 3 regimes into one program.
Applied simplify10.0
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b/2 \le -6.974405503731355 \cdot 10^{-42}:\\
\;\;\;\;\frac{c}{\frac{c \cdot \frac{1}{2}}{\frac{b/2}{a}} - \left(b/2 + b/2\right)}\\
\mathbf{if}\;b/2 \le 6.814766808373949 \cdot 10^{+121}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b/2\right) - \sqrt{b/2 \cdot b/2 - a \cdot c}}}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{b/2}{a}\\
\end{array}}\]