- Split input into 4 regimes
if b < -6.5156527474267875e+59
Initial program 37.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 5.8
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify5.8
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -6.5156527474267875e+59 < b < -1.079410454829395e-273
Initial program 9.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv9.7
\[\leadsto \color{blue}{\left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right) \cdot \frac{1}{2 \cdot a}}\]
if -1.079410454829395e-273 < b < 2.256490684090334e+112
Initial program 31.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+31.8
\[\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.1
\[\leadsto \frac{\frac{\color{blue}{4 \cdot \left(a \cdot c\right)}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}\]
if 2.256490684090334e+112 < b
Initial program 59.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 14.4
\[\leadsto \frac{\color{blue}{-2 \cdot \frac{c \cdot a}{b}}}{2 \cdot a}\]
Applied simplify2.1
\[\leadsto \color{blue}{\frac{c}{b} \cdot \frac{-2}{2}}\]
- Recombined 4 regimes into one program.
- Removed slow
pow expressions. Applied simplify11.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -6.5156527474267875 \cdot 10^{+59}:\\
\;\;\;\;\frac{-b}{a}\\
\mathbf{if}\;b \le -1.079410454829395 \cdot 10^{-273}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}{a + a}\\
\mathbf{if}\;b \le 2.256490684090334 \cdot 10^{+112}:\\
\;\;\;\;\frac{\frac{c}{a + a} \cdot \left(4 \cdot a\right)}{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-2}{2} \cdot \frac{c}{b}\\
\end{array}}\]