- Split input into 4 regimes
if (- b) < -1.5500608302667455e-06 or -1.7952682963255895e-118 < (- b) < -9.361907925007997e-142
Initial program 53.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 45.9
\[\leadsto \frac{\left(-b\right) + \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{2 \cdot a}\]
Applied simplify7.1
\[\leadsto \color{blue}{\frac{-c}{\frac{b}{1}}}\]
if -1.5500608302667455e-06 < (- b) < -1.7952682963255895e-118
Initial program 34.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+34.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 simplify16.5
\[\leadsto \frac{\frac{\color{blue}{\left(4 \cdot c\right) \cdot a}}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
if -9.361907925007997e-142 < (- b) < 5.695046886160253e+97
Initial program 11.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Applied simplify11.2
\[\leadsto \color{blue}{\frac{\sqrt{(\left(4 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{2 \cdot a}}\]
if 5.695046886160253e+97 < (- b)
Initial program 45.2
\[\frac{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 4.2
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Applied simplify4.2
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -1.5500608302667455 \cdot 10^{-06}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le -1.7952682963255895 \cdot 10^{-118}:\\
\;\;\;\;\frac{\frac{a \cdot \left(4 \cdot c\right)}{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)}}}{2 \cdot a}\\
\mathbf{if}\;-b \le -9.361907925007997 \cdot 10^{-142}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{if}\;-b \le 5.695046886160253 \cdot 10^{+97}:\\
\;\;\;\;\frac{\sqrt{(\left(4 \cdot a\right) \cdot \left(-c\right) + \left(b \cdot b\right))_*} - b}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;-\frac{b}{a}\\
\end{array}}\]