- Split input into 4 regimes
if b < -7.791543498596527e+36 or -4.37052678659646e-60 < b < -9.278703398573534e-80
Initial program 55.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 43.4
\[\leadsto \frac{\left(-b\right) - \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - b\right)}}{2 \cdot a}\]
Applied simplify5.4
\[\leadsto \color{blue}{\left(-1\right) \cdot \frac{c}{b}}\]
if -7.791543498596527e+36 < b < -4.37052678659646e-60
Initial program 44.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied flip--44.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 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 -9.278703398573534e-80 < b < 3.808029533446154e+118
Initial program 12.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv12.9
\[\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}}\]
if 3.808029533446154e+118 < b
Initial program 50.2
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv50.2
\[\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}}\]
Taylor expanded around inf 10.0
\[\leadsto \color{blue}{\left(2 \cdot \frac{c \cdot a}{b} - 2 \cdot b\right)} \cdot \frac{1}{2 \cdot a}\]
Applied simplify2.9
\[\leadsto \color{blue}{\frac{\frac{c}{\frac{b}{a}}}{a} - \frac{b}{a}}\]
- Recombined 4 regimes into one program.
Applied simplify9.4
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \le -7.791543498596527 \cdot 10^{+36}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le -4.37052678659646 \cdot 10^{-60}:\\
\;\;\;\;\frac{\frac{4 \cdot \left(a \cdot c\right)}{\sqrt{b \cdot b - a \cdot \left(4 \cdot c\right)} - b}}{2 \cdot a}\\
\mathbf{elif}\;b \le -9.278703398573534 \cdot 10^{-80}:\\
\;\;\;\;-\frac{c}{b}\\
\mathbf{elif}\;b \le 3.808029533446154 \cdot 10^{+118}:\\
\;\;\;\;\frac{1}{2 \cdot a} \cdot \left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{c}{\frac{b}{a}}}{a} - \frac{b}{a}\\
\end{array}}\]