- Split input into 4 regimes
if (- b) < -2.7844874579804934e+138
Initial program 54.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 9.6
\[\leadsto \frac{\color{blue}{2 \cdot \frac{c \cdot a}{b} - 2 \cdot b}}{2 \cdot a}\]
Applied simplify2.1
\[\leadsto \color{blue}{\frac{c}{b} \cdot 1 - \frac{b}{a}}\]
if -2.7844874579804934e+138 < (- b) < 2.6179464065815588e-83
Initial program 11.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
if 2.6179464065815588e-83 < (- b) < 4.451662349375344e+61
Initial program 42.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv42.3
\[\leadsto \color{blue}{\left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right) \cdot \frac{1}{2 \cdot a}}\]
- Using strategy
rm Applied flip--42.4
\[\leadsto \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)}}} \cdot \frac{1}{2 \cdot a}\]
Applied simplify14.8
\[\leadsto \frac{\color{blue}{\left(c \cdot a\right) \cdot 4}}{\left(-b\right) + \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}} \cdot \frac{1}{2 \cdot a}\]
Applied simplify14.9
\[\leadsto \frac{\left(c \cdot a\right) \cdot 4}{\color{blue}{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a} - b}} \cdot \frac{1}{2 \cdot a}\]
if 4.451662349375344e+61 < (- b)
Initial program 57.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 42.1
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify3.5
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
- Recombined 4 regimes into one program.
Applied simplify8.7
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;-b \le -2.7844874579804934 \cdot 10^{+138}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{if}\;-b \le 2.6179464065815588 \cdot 10^{-83}:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{a \cdot 2}\\
\mathbf{if}\;-b \le 4.451662349375344 \cdot 10^{+61}:\\
\;\;\;\;\frac{1}{a \cdot 2} \cdot \frac{4 \cdot \left(a \cdot c\right)}{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}}\]