- Split input into 4 regimes
if (- b) < -7.760265493027666e+144
Initial program 57.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 2.2
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify2.2
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -7.760265493027666e+144 < (- b) < 5.032398420968677e-131
Initial program 10.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied frac-2neg10.0
\[\leadsto \color{blue}{\frac{-\left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)}{-2 \cdot a}}\]
Applied simplify10.0
\[\leadsto \frac{\color{blue}{b + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{-2 \cdot a}\]
if 5.032398420968677e-131 < (- b) < 2.4129553953665273e+44
Initial program 38.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--38.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 simplify15.5
\[\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}\]
Applied simplify15.5
\[\leadsto \frac{\frac{\left(c \cdot a\right) \cdot 4}{\color{blue}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}}}{2 \cdot a}\]
if 2.4129553953665273e+44 < (- b)
Initial program 56.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 42.9
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify4.3
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
- Recombined 4 regimes into one program.
Applied simplify8.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -7.760265493027666 \cdot 10^{+144}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{if}\;-b \le 5.032398420968677 \cdot 10^{-131}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)} + b}{\left(-2\right) \cdot a}\\
\mathbf{if}\;-b \le 2.4129553953665273 \cdot 10^{+44}:\\
\;\;\;\;\frac{\frac{\left(c \cdot a\right) \cdot 4}{\sqrt{b \cdot b - a \cdot \left(c \cdot 4\right)} - b}}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}}\]