- Split input into 4 regimes
if b_2 < -6.64734878459886193e38
Initial program 56.3
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 4.5
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
if -6.64734878459886193e38 < b_2 < -2.06216930025553428e-127
Initial program 36.8
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--36.8
\[\leadsto \frac{\color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
Simplified16.3
\[\leadsto \frac{\frac{\color{blue}{0 + a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Simplified16.3
\[\leadsto \frac{\frac{0 + a \cdot c}{\color{blue}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{a}\]
- Using strategy
rm Applied add-cube-cbrt17.0
\[\leadsto \frac{\frac{0 + a \cdot c}{\color{blue}{\left(\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2} \cdot \sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}\right) \cdot \sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}}{a}\]
Applied associate-/r*17.0
\[\leadsto \frac{\color{blue}{\frac{\frac{0 + a \cdot c}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2} \cdot \sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}}{a}\]
Simplified14.7
\[\leadsto \frac{\frac{\color{blue}{\frac{a}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}} \cdot \frac{c}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{a}\]
- Using strategy
rm Applied add-exp-log15.6
\[\leadsto \frac{\frac{\frac{a}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}} \cdot \frac{c}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{\sqrt[3]{\color{blue}{e^{\log \left(\sqrt{b_2 \cdot b_2 - a \cdot c}\right)}} - b_2}}}{a}\]
if -2.06216930025553428e-127 < b_2 < 3.2255380126760236e123
Initial program 11.5
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
if 3.2255380126760236e123 < b_2
Initial program 54.6
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 3.6
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
- Recombined 4 regimes into one program.
Final simplification8.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -6.64734878459886193 \cdot 10^{38}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le -2.06216930025553428 \cdot 10^{-127}:\\
\;\;\;\;\frac{\frac{\frac{a}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}} \cdot \frac{c}{\sqrt[3]{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}{\sqrt[3]{e^{\log \left(\sqrt{b_2 \cdot b_2 - a \cdot c}\right)} - b_2}}}{a}\\
\mathbf{elif}\;b_2 \le 3.2255380126760236 \cdot 10^{123}:\\
\;\;\;\;\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}\\
\end{array}\]