- Split input into 4 regimes
if (- b) < -3.8652237028142594e+119
Initial program 60.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 40.8
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{a \cdot c}{b}\right)}}{2 \cdot a}\]
Applied simplify2.0
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -3.8652237028142594e+119 < (- b) < -1.9516615171416054e-122
Initial program 40.9
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+41.0
\[\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 simplify14.9
\[\leadsto \frac{\frac{\color{blue}{\left(a \cdot c\right) \cdot 4}}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
if -1.9516615171416054e-122 < (- b) < 3.092591079713731e+103
Initial program 11.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
if 3.092591079713731e+103 < (- b)
Initial program 44.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 9.5
\[\leadsto \frac{\color{blue}{2 \cdot \frac{a \cdot c}{b} - 2 \cdot b}}{2 \cdot a}\]
Applied simplify3.3
\[\leadsto \color{blue}{\frac{\frac{c}{1}}{b} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify8.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -3.8652237028142594 \cdot 10^{+119}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le -1.9516615171416054 \cdot 10^{-122}:\\
\;\;\;\;\frac{\frac{4 \cdot \left(a \cdot c\right)}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\\
\mathbf{if}\;-b \le 3.092591079713731 \cdot 10^{+103}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)} + \left(-b\right)}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}}\]