- Split input into 3 regimes
if b < -4.7674064586233796e+73
Initial program 40.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification40.1
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
Taylor expanded around -inf 5.0
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -4.7674064586233796e+73 < b < 1.3499074567035673e-73
Initial program 13.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification12.9
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
- Using strategy
rm Applied clear-num13.0
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}}}\]
if 1.3499074567035673e-73 < b
Initial program 52.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Initial simplification52.7
\[\leadsto \frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}\]
Taylor expanded around inf 9.4
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified9.4
\[\leadsto \color{blue}{\frac{-c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -4.7674064586233796 \cdot 10^{+73}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 1.3499074567035673 \cdot 10^{-73}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 2}{\sqrt{b \cdot b - 4 \cdot \left(c \cdot a\right)} - b}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]