Initial program 15.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}\]
Simplified15.6
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} - b}{2 \cdot a}\\
\end{array}}\]
- Using strategy
rm Applied add-cube-cbrt15.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right) \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}} - b}{2 \cdot a}\\
\end{array}\]
- Using strategy
rm Applied pow115.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right) \cdot {\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{1}} - b}{2 \cdot a}\\
\end{array}\]
Applied pow115.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{{\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{1} \cdot {\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{1}} - b}{2 \cdot a}\\
\end{array}\]
Applied pow-prod-down15.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{{\left(\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right) \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{1}} - b}{2 \cdot a}\\
\end{array}\]
Applied sqrt-pow115.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right) \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{\left(\frac{1}{2}\right)} - b}{2 \cdot a}\\
\end{array}\]
Simplified15.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\mathsf{fma}\left(\left(-4 \cdot a\right), c, \left(b \cdot b\right)\right)\right)}^{\left(\frac{1}{2}\right)} - b}{2 \cdot a}\\
\end{array}\]
- Using strategy
rm Applied sqr-pow15.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\mathsf{fma}\left(\left(-4 \cdot a\right), c, \left(b \cdot b\right)\right)\right)}^{\left(\frac{\frac{1}{2}}{2}\right)} \cdot {\left(\mathsf{fma}\left(\left(-4 \cdot a\right), c, \left(b \cdot b\right)\right)\right)}^{\left(\frac{\frac{1}{2}}{2}\right)} - b}{2 \cdot a}\\
\end{array}\]
Initial program 34.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}\]
Simplified34.8
\[\leadsto \color{blue}{\begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} - b}{2 \cdot a}\\
\end{array}}\]
- Using strategy
rm Applied add-cube-cbrt34.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right) \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}} - b}{2 \cdot a}\\
\end{array}\]
- Using strategy
rm Applied pow134.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right) \cdot {\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{1}} - b}{2 \cdot a}\\
\end{array}\]
Applied pow134.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{{\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{1} \cdot {\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{1}} - b}{2 \cdot a}\\
\end{array}\]
Applied pow-prod-down34.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\sqrt{{\left(\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right) \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{1}} - b}{2 \cdot a}\\
\end{array}\]
Applied sqrt-pow134.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\left(\sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)} \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right) \cdot \sqrt[3]{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}\right)}^{\left(\frac{1}{2}\right)} - b}{2 \cdot a}\\
\end{array}\]
Simplified34.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \sqrt{\mathsf{fma}\left(-4, \left(c \cdot a\right), \left(b \cdot b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\mathsf{fma}\left(\left(-4 \cdot a\right), c, \left(b \cdot b\right)\right)\right)}^{\left(\frac{1}{2}\right)} - b}{2 \cdot a}\\
\end{array}\]
Taylor expanded around 0 2.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \ge 0:\\
\;\;\;\;\frac{2 \cdot c}{\left(-b\right) - \color{blue}{b}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\mathsf{fma}\left(\left(-4 \cdot a\right), c, \left(b \cdot b\right)\right)\right)}^{\left(\frac{1}{2}\right)} - b}{2 \cdot a}\\
\end{array}\]