- Split input into 3 regimes
if b < -1.5081953238138552e+114
Initial program 48.5
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 3.2
\[\leadsto \color{blue}{\frac{c}{b} - \frac{b}{a}}\]
if -1.5081953238138552e+114 < b < 1.270925720464309e-123
Initial program 11.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied *-un-lft-identity11.0
\[\leadsto \frac{\left(-b\right) + \color{blue}{1 \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}{2 \cdot a}\]
Applied *-un-lft-identity11.0
\[\leadsto \frac{\color{blue}{1 \cdot \left(-b\right)} + 1 \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied distribute-lft-out11.0
\[\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*11.1
\[\leadsto \color{blue}{\frac{1}{\frac{2 \cdot a}{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}\]
if 1.270925720464309e-123 < b
Initial program 51.4
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 11.2
\[\leadsto \color{blue}{-1 \cdot \frac{c}{b}}\]
Simplified11.2
\[\leadsto \color{blue}{-\frac{c}{b}}\]
- Recombined 3 regimes into one program.
Final simplification10.1
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.5081953238138552 \cdot 10^{+114}:\\
\;\;\;\;\frac{c}{b} - \frac{b}{a}\\
\mathbf{elif}\;b \le 1.270925720464309 \cdot 10^{-123}:\\
\;\;\;\;\frac{1}{\frac{a \cdot 2}{\sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)} + \left(-b\right)}}\\
\mathbf{else}:\\
\;\;\;\;-\frac{c}{b}\\
\end{array}\]