- Split input into 4 regimes
if b_2 < -1.2899277632131787e+52 or -1.104531343463329e-77 < b_2 < -7.40391557690711e-84
Initial program 56.3
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied div-inv56.3
\[\leadsto \color{blue}{\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}\right) \cdot \frac{1}{a}}\]
Taylor expanded around -inf 4.1
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
if -1.2899277632131787e+52 < b_2 < -1.104531343463329e-77
Initial program 43.1
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied div-inv43.1
\[\leadsto \color{blue}{\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}\right) \cdot \frac{1}{a}}\]
- Using strategy
rm Applied flip--43.2
\[\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}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}} \cdot \frac{1}{a}\]
Applied associate-*l/43.2
\[\leadsto \color{blue}{\frac{\left(\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}\right) \cdot \frac{1}{a}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}\]
Simplified15.7
\[\leadsto \frac{\color{blue}{\frac{a \cdot c}{a}}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}\]
if -7.40391557690711e-84 < b_2 < 1.0100820680409869e+86
Initial program 13.6
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied sub-neg13.6
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{b_2 \cdot b_2 + \left(-a \cdot c\right)}}}{a}\]
- Using strategy
rm Applied *-un-lft-identity13.6
\[\leadsto \frac{\color{blue}{1 \cdot \left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 + \left(-a \cdot c\right)}\right)}}{a}\]
Applied associate-/l*13.7
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 + \left(-a \cdot c\right)}}}}\]
if 1.0100820680409869e+86 < b_2
Initial program 42.8
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 4.5
\[\leadsto \color{blue}{-2 \cdot \frac{b_2}{a}}\]
- Recombined 4 regimes into one program.
Final simplification9.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.2899277632131787 \cdot 10^{+52}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le -1.104531343463329 \cdot 10^{-77}:\\
\;\;\;\;\frac{\frac{c \cdot a}{a}}{\sqrt{b_2 \cdot b_2 - c \cdot a} + \left(-b_2\right)}\\
\mathbf{elif}\;b_2 \le -7.40391557690711 \cdot 10^{-84}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 1.0100820680409869 \cdot 10^{+86}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 + \left(-c\right) \cdot a}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{b_2}{a} \cdot -2\\
\end{array}\]