- Split input into 3 regimes
if b < -6.208725350567649e-58
Initial program 52.8
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv52.8
\[\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 8.3
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified8.3
\[\leadsto \color{blue}{\frac{-c}{b}}\]
if -6.208725350567649e-58 < b < 2.0482371071916228e+48
Initial program 13.9
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv14.0
\[\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 2.0482371071916228e+48 < b
Initial program 36.0
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv36.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 5.9
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
- Recombined 3 regimes into one program.
Final simplification10.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -6.208725350567649 \cdot 10^{-58}:\\
\;\;\;\;\frac{-c}{b}\\
\mathbf{elif}\;b \le 2.0482371071916228 \cdot 10^{+48}:\\
\;\;\;\;\left(\left(-b\right) - \sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4}\right) \cdot \frac{1}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\end{array}\]