- Split input into 4 regimes
if b < -2.0385768799294215e-30 or -1.446199048995873e-72 < b < -5.050014877910474e-110
Initial program 52.4
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 47.0
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify9.9
\[\leadsto \color{blue}{\frac{\left(-b\right) + b}{a + a} - \frac{\frac{c}{b}}{1}}\]
if -2.0385768799294215e-30 < b < -1.446199048995873e-72
Initial program 35.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--35.1
\[\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 simplify17.9
\[\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 -5.050014877910474e-110 < b < 3.2436990905620275e+112
Initial program 11.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub11.5
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
if 3.2436990905620275e+112 < b
Initial program 48.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-sub48.5
\[\leadsto \color{blue}{\frac{-b}{2 \cdot a} - \frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}}\]
Taylor expanded around inf 10.0
\[\leadsto \frac{-b}{2 \cdot a} - \frac{\color{blue}{b - 2 \cdot \frac{c \cdot a}{b}}}{2 \cdot a}\]
Applied simplify3.2
\[\leadsto \color{blue}{\frac{-b}{a + a} - \left(\frac{b}{a + a} - \frac{\frac{c}{b}}{1}\right)}\]
- Recombined 4 regimes into one program.
- Removed slow
pow expressions. Applied simplify9.5
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -2.0385768799294215 \cdot 10^{-30}:\\
\;\;\;\;\frac{\left(-b\right) + b}{a + a} - \frac{c}{b}\\
\mathbf{if}\;b \le -1.446199048995873 \cdot 10^{-72}:\\
\;\;\;\;\frac{\frac{4}{2} \cdot c}{\left(-b\right) + \sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}\\
\mathbf{if}\;b \le -5.050014877910474 \cdot 10^{-110}:\\
\;\;\;\;\frac{\left(-b\right) + b}{a + a} - \frac{c}{b}\\
\mathbf{if}\;b \le 3.2436990905620275 \cdot 10^{+112}:\\
\;\;\;\;\frac{-b}{a + a} - \frac{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)}}{a + a}\\
\mathbf{else}:\\
\;\;\;\;\frac{-b}{a + a} - \left(\frac{b}{a + a} - \frac{c}{b}\right)\\
\end{array}}\]