- Split input into 4 regimes
if b < -8.843583931672938e+115
Initial program 60.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification60.3
\[\leadsto \frac{\frac{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{a}}{2}\]
Taylor expanded around -inf 13.7
\[\leadsto \frac{\frac{\color{blue}{-2 \cdot \frac{a \cdot c}{b}}}{a}}{2}\]
if -8.843583931672938e+115 < b < -1.5349211703002384e-150
Initial program 38.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification38.7
\[\leadsto \frac{\frac{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{a}}{2}\]
- Using strategy
rm Applied flip--38.8
\[\leadsto \frac{\frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} \cdot \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{\left(-b\right) + \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}}}{a}}{2}\]
Applied associate-/l/42.4
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*} \cdot \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{a \cdot \left(\left(-b\right) + \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}\right)}}}{2}\]
Simplified19.7
\[\leadsto \frac{\frac{\color{blue}{\left(c \cdot a\right) \cdot 4}}{a \cdot \left(\left(-b\right) + \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}\right)}}{2}\]
if -1.5349211703002384e-150 < b < 7.09657914899923e+129
Initial program 10.6
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification10.6
\[\leadsto \frac{\frac{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{a}}{2}\]
- Using strategy
rm Applied add-sqr-sqrt10.9
\[\leadsto \frac{\frac{\left(-b\right) - \color{blue}{\sqrt{\sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}} \cdot \sqrt{\sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}}}{a}}{2}\]
if 7.09657914899923e+129 < b
Initial program 52.3
\[\frac{\left(-b\right) - \sqrt{b \cdot b - 4 \cdot \left(a \cdot c\right)}}{2 \cdot a}\]
Initial simplification52.3
\[\leadsto \frac{\frac{\left(-b\right) - \sqrt{(\left(-4 \cdot a\right) \cdot c + \left(b \cdot b\right))_*}}{a}}{2}\]
Taylor expanded around inf 3.6
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified3.6
\[\leadsto \color{blue}{\frac{-b}{a}}\]
- Recombined 4 regimes into one program.
Final simplification12.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -8.843583931672938 \cdot 10^{+115}:\\
\;\;\;\;\frac{\frac{-2 \cdot \frac{a \cdot c}{b}}{a}}{2}\\
\mathbf{elif}\;b \le -1.5349211703002384 \cdot 10^{-150}:\\
\;\;\;\;\frac{\frac{4 \cdot \left(a \cdot c\right)}{\left(\left(-b\right) + \sqrt{(\left(a \cdot -4\right) \cdot c + \left(b \cdot b\right))_*}\right) \cdot a}}{2}\\
\mathbf{elif}\;b \le 7.09657914899923 \cdot 10^{+129}:\\
\;\;\;\;\frac{\frac{\left(-b\right) - \sqrt{\sqrt{(\left(a \cdot -4\right) \cdot c + \left(b \cdot b\right))_*}} \cdot \sqrt{\sqrt{(\left(a \cdot -4\right) \cdot c + \left(b \cdot b\right))_*}}}{a}}{2}\\
\mathbf{else}:\\
\;\;\;\;\frac{-b}{a}\\
\end{array}\]