- Split input into 4 regimes
if b < -1.4257270821599501e+146
Initial program 57.7
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around -inf 2.3
\[\leadsto \color{blue}{-1 \cdot \frac{b}{a}}\]
Simplified2.3
\[\leadsto \color{blue}{\frac{-b}{a}}\]
if -1.4257270821599501e+146 < b < 1.9729334767141602e-129
Initial program 11.0
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied add-cube-cbrt11.3
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{-b} \cdot \sqrt[3]{-b}\right) \cdot \sqrt[3]{-b}} + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Applied fma-def11.3
\[\leadsto \frac{\color{blue}{(\left(\sqrt[3]{-b} \cdot \sqrt[3]{-b}\right) \cdot \left(\sqrt[3]{-b}\right) + \left(\sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right))_*}}{2 \cdot a}\]
if 1.9729334767141602e-129 < b < 7.159459861338518e+120
Initial program 41.1
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
- Using strategy
rm Applied flip-+41.2
\[\leadsto \frac{\color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}}}{2 \cdot a}\]
Applied associate-/l/43.5
\[\leadsto \color{blue}{\frac{\left(-b\right) \cdot \left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c} \cdot \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}}\]
Simplified16.9
\[\leadsto \frac{\color{blue}{4 \cdot \left(c \cdot a\right)}}{\left(2 \cdot a\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}\right)}\]
if 7.159459861338518e+120 < b
Initial program 60.3
\[\frac{\left(-b\right) + \sqrt{b \cdot b - \left(4 \cdot a\right) \cdot c}}{2 \cdot a}\]
Taylor expanded around inf 13.7
\[\leadsto \frac{\color{blue}{-2 \cdot \frac{a \cdot c}{b}}}{2 \cdot a}\]
- Recombined 4 regimes into one program.
Final simplification12.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;b \le -1.4257270821599501 \cdot 10^{+146}:\\
\;\;\;\;\frac{-b}{a}\\
\mathbf{elif}\;b \le 1.9729334767141602 \cdot 10^{-129}:\\
\;\;\;\;\frac{(\left(\sqrt[3]{-b} \cdot \sqrt[3]{-b}\right) \cdot \left(\sqrt[3]{-b}\right) + \left(\sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}\right))_*}{a \cdot 2}\\
\mathbf{elif}\;b \le 7.159459861338518 \cdot 10^{+120}:\\
\;\;\;\;\frac{\left(a \cdot c\right) \cdot 4}{\left(a \cdot 2\right) \cdot \left(\left(-b\right) - \sqrt{b \cdot b - c \cdot \left(4 \cdot a\right)}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{-2 \cdot \frac{a \cdot c}{b}}{a \cdot 2}\\
\end{array}\]