- Split input into 4 regimes
if b_2 < -3.926021394052593e118
Initial program 52.1
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 3.3
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
if -3.926021394052593e118 < b_2 < 1.05448800274897715e-275
Initial program 10.3
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
if 1.05448800274897715e-275 < b_2 < 8.84337229694695364e91
Initial program 33.2
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied add-sqr-sqrt33.2
\[\leadsto \frac{\left(-b_2\right) + \sqrt{\color{blue}{\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
Applied sqrt-prod34.4
\[\leadsto \frac{\left(-b_2\right) + \color{blue}{\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
- Using strategy
rm Applied flip-+34.4
\[\leadsto \frac{\color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \left(\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}}\right) \cdot \left(\sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}}\right)}{\left(-b_2\right) - \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}}}}}{a}\]
Simplified16.8
\[\leadsto \frac{\frac{\color{blue}{a \cdot c}}{\left(-b_2\right) - \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt{\sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
Simplified16.6
\[\leadsto \frac{\frac{a \cdot c}{\color{blue}{-\left(b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}\right)}}}{a}\]
- Using strategy
rm Applied add-cube-cbrt17.3
\[\leadsto \frac{\frac{a \cdot c}{-\left(b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}\right)}}{\color{blue}{\left(\sqrt[3]{a} \cdot \sqrt[3]{a}\right) \cdot \sqrt[3]{a}}}\]
Applied add-cube-cbrt17.5
\[\leadsto \frac{\frac{a \cdot c}{-\color{blue}{\left(\sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}\right) \cdot \sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}}{\left(\sqrt[3]{a} \cdot \sqrt[3]{a}\right) \cdot \sqrt[3]{a}}\]
Applied distribute-lft-neg-in17.5
\[\leadsto \frac{\frac{a \cdot c}{\color{blue}{\left(-\sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}\right) \cdot \sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}}{\left(\sqrt[3]{a} \cdot \sqrt[3]{a}\right) \cdot \sqrt[3]{a}}\]
Applied times-frac15.2
\[\leadsto \frac{\color{blue}{\frac{a}{-\sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}} \cdot \frac{c}{\sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}}{\left(\sqrt[3]{a} \cdot \sqrt[3]{a}\right) \cdot \sqrt[3]{a}}\]
Applied times-frac12.8
\[\leadsto \color{blue}{\frac{\frac{a}{-\sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{\sqrt[3]{a} \cdot \sqrt[3]{a}} \cdot \frac{\frac{c}{\sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{\sqrt[3]{a}}}\]
if 8.84337229694695364e91 < b_2
Initial program 59.3
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 2.7
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
- Recombined 4 regimes into one program.
Final simplification8.0
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -3.926021394052593 \cdot 10^{118}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}\\
\mathbf{elif}\;b_2 \le 1.05448800274897715 \cdot 10^{-275}:\\
\;\;\;\;\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\\
\mathbf{elif}\;b_2 \le 8.84337229694695364 \cdot 10^{91}:\\
\;\;\;\;\frac{\frac{a}{-\sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}} \cdot \sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{\sqrt[3]{a} \cdot \sqrt[3]{a}} \cdot \frac{\frac{c}{\sqrt[3]{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{\sqrt[3]{a}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\end{array}\]