- Split input into 3 regimes
if b_2 < -1.419901435117473e+81
Initial program 41.8
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 5.0
\[\leadsto \color{blue}{-2 \cdot \frac{b_2}{a}}\]
if -1.419901435117473e+81 < b_2 < 2.6504134482900307e-73
Initial program 13.3
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied add-cube-cbrt13.5
\[\leadsto \frac{\color{blue}{\left(\sqrt[3]{-b_2} \cdot \sqrt[3]{-b_2}\right) \cdot \sqrt[3]{-b_2}} + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Applied fma-def13.5
\[\leadsto \frac{\color{blue}{(\left(\sqrt[3]{-b_2} \cdot \sqrt[3]{-b_2}\right) \cdot \left(\sqrt[3]{-b_2}\right) + \left(\sqrt{b_2 \cdot b_2 - a \cdot c}\right))_*}}{a}\]
if 2.6504134482900307e-73 < b_2
Initial program 51.9
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied clear-num51.9
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}\]
Taylor expanded around 0 9.6
\[\leadsto \frac{1}{\color{blue}{-2 \cdot \frac{b_2}{c}}}\]
- Recombined 3 regimes into one program.
Final simplification10.5
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.419901435117473 \cdot 10^{+81}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\mathbf{elif}\;b_2 \le 2.6504134482900307 \cdot 10^{-73}:\\
\;\;\;\;\frac{(\left(\sqrt[3]{-b_2} \cdot \sqrt[3]{-b_2}\right) \cdot \left(\sqrt[3]{-b_2}\right) + \left(\sqrt{b_2 \cdot b_2 - a \cdot c}\right))_*}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{b_2}{c} \cdot -2}\\
\end{array}\]