Initial program 26.6
\[\begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\\
\end{array}\]
Taylor expanded around -inf 6.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{2 \cdot c}{\color{blue}{\left(-b\right) + \left(2 \cdot \frac{c \cdot a}{b} - b\right)}}\\
\end{array}\]
Applied simplify3.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)}}{a + a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{c + c}{2}}{(\left(\frac{a}{b}\right) \cdot c + \left(-b\right))_*}\\
\end{array}}\]
- Using strategy
rm Applied expm1-log1p-u7.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)}}{a + a}\\
\mathbf{else}:\\
\;\;\;\;\color{blue}{\frac{\frac{c + c}{2}}{(e^{\log_* (1 + (\left(\frac{a}{b}\right) \cdot c + \left(-b\right))_*)} - 1)^*}}\\
\end{array}\]
Taylor expanded around 0 3.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(a \cdot 4\right)}}{a + a}\\
\mathbf{else}:\\
\;\;\;\;\color{blue}{\frac{\frac{c + c}{2}}{-1 \cdot b}}\\
\end{array}\]
Applied simplify3.3
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{a + a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{-b}\\
\end{array}}\]
Taylor expanded around inf 3.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{\left(-b\right) - \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}{a + a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{-b}\\
\end{array}\]