- Split input into 4 regimes
if b_2 < -3.1668736300451263e153
Initial program 64.0
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 1.3
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
if -3.1668736300451263e153 < b_2 < 1.6112937870416748e-307
Initial program 34.0
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--34.1
\[\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}\]
Simplified15.5
\[\leadsto \frac{\frac{\color{blue}{0 + a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Simplified15.5
\[\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 clear-num15.7
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\frac{0 + a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}}\]
Simplified14.4
\[\leadsto \frac{1}{\color{blue}{\frac{a}{a \cdot c} \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2\right)}}\]
- Using strategy
rm Applied clear-num14.4
\[\leadsto \frac{1}{\color{blue}{\frac{1}{\frac{a \cdot c}{a}}} \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2\right)}\]
Simplified8.6
\[\leadsto \frac{1}{\frac{1}{\color{blue}{c}} \cdot \left(\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2\right)}\]
- Using strategy
rm Applied associate-/r*8.1
\[\leadsto \color{blue}{\frac{\frac{1}{\frac{1}{c}}}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}\]
Simplified8.1
\[\leadsto \frac{\color{blue}{c}}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}\]
if 1.6112937870416748e-307 < b_2 < 1.88622362564362639e99
Initial program 8.5
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied div-sub8.5
\[\leadsto \color{blue}{\frac{-b_2}{a} - \frac{\sqrt{b_2 \cdot b_2 - a \cdot c}}{a}}\]
if 1.88622362564362639e99 < b_2
Initial program 48.1
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 4.0
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
- Recombined 4 regimes into one program.
Final simplification6.3
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -3.1668736300451263 \cdot 10^{153}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 1.6112937870416748 \cdot 10^{-307}:\\
\;\;\;\;\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}\\
\mathbf{elif}\;b_2 \le 1.88622362564362639 \cdot 10^{99}:\\
\;\;\;\;\frac{-b_2}{a} - \frac{\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}\]