Initial program 8.9
\[\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}\]
- Using strategy
rm Applied add-exp-log10.4
\[\leadsto \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) + e^{\log \left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}}{2 \cdot a}\\
\end{array}\]
- Using strategy
rm Applied add-cube-cbrt10.4
\[\leadsto \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) + e^{\log \left(\left(\sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}} \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\right) \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\right)}}{2 \cdot a}\\
\end{array}\]
Applied log-prod10.5
\[\leadsto \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) + e^{\log \left(\sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}} \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\right) + \log \left(\sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\right)}}{2 \cdot a}\\
\end{array}\]
Applied exp-sum10.4
\[\leadsto \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) + e^{\log \left(\sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}} \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\right)} \cdot e^{\log \left(\sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\right)}}{2 \cdot a}\\
\end{array}\]
Applied simplify9.9
\[\leadsto \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) + \left(\sqrt[3]{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}} \cdot \sqrt[3]{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}}\right) \cdot e^{\log \left(\sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}\right)}}{2 \cdot a}\\
\end{array}\]
Applied simplify9.3
\[\leadsto \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) + \left(\sqrt[3]{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}} \cdot \sqrt[3]{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}}\right) \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a}}}{2 \cdot a}\\
\end{array}\]
- Using strategy
rm Applied add-cube-cbrt9.2
\[\leadsto \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) + \left(\sqrt[3]{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}} \cdot \sqrt[3]{\sqrt{\left(\sqrt[3]{b \cdot b - \left(a \cdot c\right) \cdot 4} \cdot \sqrt[3]{b \cdot b - \left(a \cdot c\right) \cdot 4}\right) \cdot \sqrt[3]{b \cdot b - \left(a \cdot c\right) \cdot 4}}}\right) \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a}}}{2 \cdot a}\\
\end{array}\]
Applied sqrt-prod9.2
\[\leadsto \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) + \left(\sqrt[3]{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}} \cdot \sqrt[3]{\sqrt{\sqrt[3]{b \cdot b - \left(a \cdot c\right) \cdot 4} \cdot \sqrt[3]{b \cdot b - \left(a \cdot c\right) \cdot 4}} \cdot \sqrt{\sqrt[3]{b \cdot b - \left(a \cdot c\right) \cdot 4}}}\right) \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a}}}{2 \cdot a}\\
\end{array}\]
Applied simplify9.2
\[\leadsto \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) + \left(\sqrt[3]{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}} \cdot \sqrt[3]{\left|\sqrt[3]{b \cdot b - \left(a \cdot 4\right) \cdot c}\right| \cdot \sqrt{\sqrt[3]{b \cdot b - \left(a \cdot c\right) \cdot 4}}}\right) \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a}}}{2 \cdot a}\\
\end{array}\]
- Using strategy
rm Applied pow1/39.9
\[\leadsto \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) + \left(\sqrt[3]{\sqrt{b \cdot b - \left(a \cdot c\right) \cdot 4}} \cdot \sqrt[3]{\left|{\left(b \cdot b - \left(a \cdot 4\right) \cdot c\right)}^{\frac{1}{3}}\right| \cdot \sqrt{\sqrt[3]{b \cdot b - \left(a \cdot c\right) \cdot 4}}}\right) \cdot \sqrt[3]{\sqrt{b \cdot b - \left(4 \cdot c\right) \cdot a}}}{2 \cdot a}\\
\end{array}\]