- Split input into 3 regimes
if b < -3.6006169463337958e-70
Initial program 53.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around -inf 8.8
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified8.8
\[\leadsto \color{blue}{\frac{c}{b} \cdot -1}\]
if -3.6006169463337958e-70 < b < 1.8526227140702638e107
Initial program 12.5
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
- Using strategy
rm Applied div-inv12.6
\[\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}}\]
Simplified12.6
\[\leadsto \left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}\right) \cdot \color{blue}{\frac{1}{a \cdot 2}}\]
if 1.8526227140702638e107 < b
Initial program 49.7
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Taylor expanded around inf 10.3
\[\leadsto \frac{\color{blue}{2 \cdot \frac{a \cdot c}{b} - 2 \cdot b}}{2 \cdot a}\]
Simplified4.3
\[\leadsto \frac{\color{blue}{2 \cdot \left(c \cdot \frac{a}{b}\right) - b \cdot 2}}{2 \cdot a}\]
- Recombined 3 regimes into one program.
Final simplification9.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -3.6006169463337958 \cdot 10^{-70}:\\
\;\;\;\;\frac{c}{b} \cdot -1\\
\mathbf{elif}\;b \le 1.8526227140702638 \cdot 10^{107}:\\
\;\;\;\;\left(\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)}\right) \cdot \frac{1}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot \left(c \cdot \frac{a}{b}\right) - b \cdot 2}{a \cdot 2}\\
\end{array}\]