- Split input into 4 regimes
if (- b) < -2.837082706333136e-19 or -2.2814375741159313e-119 < (- b) < -7.684966148341504e-133
Initial program 54.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 45.0
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify6.8
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
if -2.837082706333136e-19 < (- b) < -2.2814375741159313e-119
Initial program 35.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+35.4
\[\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.1
\[\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 -7.684966148341504e-133 < (- b) < 52.989744707118035
Initial program 12.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
if 52.989744707118035 < (- b)
Initial program 29.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 8.2
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify8.2
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -2.837082706333136 \cdot 10^{-19}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le -2.2814375741159313 \cdot 10^{-119}:\\
\;\;\;\;\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 -7.684966148341504 \cdot 10^{-133}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le 52.989744707118035:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{-b}{a}\\
\end{array}}\]