- Split input into 3 regimes
if b < -3.585646687489005e+153
Initial program 60.6
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified60.6
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around -inf 60.6
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
Simplified60.6
\[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}} - b}{2 \cdot a}\]
Taylor expanded around -inf 1.9
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -3.585646687489005e+153 < b < 1.878245103047456e-48
Initial program 12.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified12.5
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around -inf 12.5
\[\leadsto \frac{\sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}} - b}{2 \cdot a}\]
Simplified12.5
\[\leadsto \frac{\sqrt{\color{blue}{b \cdot b - a \cdot \left(4 \cdot c\right)}} - b}{2 \cdot a}\]
if 1.878245103047456e-48 < b
Initial program 53.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Simplified53.5
\[\leadsto \color{blue}{\frac{\sqrt{b \cdot b - \left(c \cdot a\right) \cdot 4} - b}{2 \cdot a}}\]
Taylor expanded around inf 7.7
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified7.7
\[\leadsto \color{blue}{-\frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification9.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -3.585646687489005 \cdot 10^{+153}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 1.878245103047456 \cdot 10^{-48}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(c \cdot 4\right) \cdot a} - b}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]