- Split input into 3 regimes
if b < -2.6753706590153626e+144
Initial program 57.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 1.9
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified1.9
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -2.6753706590153626e+144 < b < 4.940103041698796e-108
Initial program 11.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 11.8
\[\leadsto \frac{\left(-b\right) + \sqrt{\color{blue}{{b}^{2} - 4 \cdot \left(a \cdot c\right)}}}{2 \cdot a}\]
if 4.940103041698796e-108 < b
Initial program 51.8
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity51.8
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}}{2 \cdot a}\]
Applied associate-/l*51.8
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}\]
Taylor expanded around 0 11.1
\[\leadsto \frac{1}{\color{blue}{-1 \cdot \frac{b}{c}}}\]
Simplified11.1
\[\leadsto \frac{1}{\color{blue}{\frac{-b}{c}}}\]
- Recombined 3 regimes into one program.
Final simplification10.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -2.6753706590153626 \cdot 10^{+144}:\\
\;\;\;\;-\frac{b}{a}\\
\mathbf{elif}\;b \le 4.940103041698796 \cdot 10^{-108}:\\
\;\;\;\;\frac{\sqrt{{b}^{2} - \left(c \cdot a\right) \cdot 4} + \left(-b\right)}{a \cdot 2}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{-\frac{b}{c}}\\
\end{array}\]