- Split input into 4 regimes
if b_2 < -4.612458861974623e+85
Initial program 57.9
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 2.6
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
if -4.612458861974623e+85 < b_2 < -1.2156065423647747e-298
Initial program 30.7
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--30.7
\[\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}\]
Applied associate-/l/35.5
\[\leadsto \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}}{a \cdot \left(\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}\right)}}\]
Simplified21.3
\[\leadsto \frac{\color{blue}{a \cdot c}}{a \cdot \left(\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}\right)}\]
- Using strategy
rm Applied times-frac8.5
\[\leadsto \color{blue}{\frac{a}{a} \cdot \frac{c}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}\]
Simplified8.5
\[\leadsto \color{blue}{1} \cdot \frac{c}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}\]
Simplified8.5
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}\]
if -1.2156065423647747e-298 < b_2 < 4.1004814960251215e+83
Initial program 9.7
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around 0 9.7
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{{b_2}^{2} - a \cdot c}}}{a}\]
- Using strategy
rm Applied *-un-lft-identity9.7
\[\leadsto \frac{\left(-b_2\right) - \color{blue}{1 \cdot \sqrt{{b_2}^{2} - a \cdot c}}}{a}\]
Applied *-un-lft-identity9.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(-b_2\right)} - 1 \cdot \sqrt{{b_2}^{2} - a \cdot c}}{a}\]
Applied distribute-lft-out--9.7
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c}\right)}}{a}\]
Applied associate-/l*9.9
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c}}}}\]
if 4.1004814960251215e+83 < b_2
Initial program 41.7
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 4.7
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
Simplified4.7
\[\leadsto \color{blue}{(-2 \cdot \left(\frac{b_2}{a}\right) + \left(\frac{c}{\frac{b_2}{\frac{1}{2}}}\right))_*}\]
- Recombined 4 regimes into one program.
Final simplification6.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -4.612458861974623 \cdot 10^{+85}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le -1.2156065423647747 \cdot 10^{-298}:\\
\;\;\;\;\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}\\
\mathbf{elif}\;b_2 \le 4.1004814960251215 \cdot 10^{+83}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c}}}\\
\mathbf{else}:\\
\;\;\;\;(-2 \cdot \left(\frac{b_2}{a}\right) + \left(\frac{c}{\frac{b_2}{\frac{1}{2}}}\right))_*\\
\end{array}\]