Initial program 48.6
\[\begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\\
\end{array}\]
Taylor expanded around inf 48.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \color{blue}{\left(b - 2 \cdot \frac{c \cdot a}{b}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\\
\end{array}\]
Applied simplify48.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(2 \cdot a\right) \cdot \frac{c}{b} - \left(b + b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}{2 \cdot a}\\
\end{array}}\]
- Using strategy
rm Applied add-cube-cbrt48.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\color{blue}{\left(\sqrt[3]{\left(2 \cdot a\right) \cdot \frac{c}{b}} \cdot \sqrt[3]{\left(2 \cdot a\right) \cdot \frac{c}{b}}\right) \cdot \sqrt[3]{\left(2 \cdot a\right) \cdot \frac{c}{b}}} - \left(b + b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4} - b}{2 \cdot a}\\
\end{array}\]
Taylor expanded around -inf 11.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(\sqrt[3]{\left(2 \cdot a\right) \cdot \frac{c}{b}} \cdot \sqrt[3]{\left(2 \cdot a\right) \cdot \frac{c}{b}}\right) \cdot \sqrt[3]{\left(2 \cdot a\right) \cdot \frac{c}{b}} - \left(b + b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(2 \cdot \frac{c \cdot a}{b} - b\right) - b}{2 \cdot a}\\
\end{array}\]
Applied simplify4.2
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\frac{2}{b} \cdot \left(c \cdot a\right) - \left(b + b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{b}{c}} - \frac{b + b}{2 \cdot a}\\
\end{array}}\]