- Split input into 4 regimes
if b_2 < -2.2624163142142334e+27 or -2.014594234406352e-62 < b_2 < -1.1320615158913861e-146
Initial program 51.7
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 51.7
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{{b_2}^{2} - a \cdot c}}}{a}\]
Taylor expanded around -inf 10.6
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
if -2.2624163142142334e+27 < b_2 < -2.014594234406352e-62
Initial program 39.9
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 39.9
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{{b_2}^{2} - a \cdot c}}}{a}\]
- Using strategy
rm Applied clear-num39.9
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c}}}}\]
- Using strategy
rm Applied div-inv39.9
\[\leadsto \frac{1}{\color{blue}{a \cdot \frac{1}{\left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c}}}}\]
Applied associate-/r*39.9
\[\leadsto \color{blue}{\frac{\frac{1}{a}}{\frac{1}{\left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c}}}}\]
- Using strategy
rm Applied flip--40.0
\[\leadsto \frac{\frac{1}{a}}{\frac{1}{\color{blue}{\frac{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c} \cdot \sqrt{{b_2}^{2} - a \cdot c}}{\left(-b_2\right) + \sqrt{{b_2}^{2} - a \cdot c}}}}}\]
Applied associate-/r/40.0
\[\leadsto \frac{\frac{1}{a}}{\color{blue}{\frac{1}{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c} \cdot \sqrt{{b_2}^{2} - a \cdot c}} \cdot \left(\left(-b_2\right) + \sqrt{{b_2}^{2} - a \cdot c}\right)}}\]
Applied div-inv40.0
\[\leadsto \frac{\color{blue}{1 \cdot \frac{1}{a}}}{\frac{1}{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c} \cdot \sqrt{{b_2}^{2} - a \cdot c}} \cdot \left(\left(-b_2\right) + \sqrt{{b_2}^{2} - a \cdot c}\right)}\]
Applied times-frac42.9
\[\leadsto \color{blue}{\frac{1}{\frac{1}{\left(-b_2\right) \cdot \left(-b_2\right) - \sqrt{{b_2}^{2} - a \cdot c} \cdot \sqrt{{b_2}^{2} - a \cdot c}}} \cdot \frac{\frac{1}{a}}{\left(-b_2\right) + \sqrt{{b_2}^{2} - a \cdot c}}}\]
Simplified17.8
\[\leadsto \color{blue}{\left(c \cdot a\right)} \cdot \frac{\frac{1}{a}}{\left(-b_2\right) + \sqrt{{b_2}^{2} - a \cdot c}}\]
Simplified17.8
\[\leadsto \left(c \cdot a\right) \cdot \color{blue}{\frac{\frac{1}{a}}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}\]
if -1.1320615158913861e-146 < b_2 < 2.8358752990862995e+119
Initial program 11.3
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 11.3
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{{b_2}^{2} - a \cdot c}}}{a}\]
if 2.8358752990862995e+119 < b_2
Initial program 49.2
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 49.2
\[\leadsto \frac{\left(-b_2\right) - \sqrt{\color{blue}{{b_2}^{2} - a \cdot c}}}{a}\]
Taylor expanded around inf 2.7
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
Simplified2.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 simplification10.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -2.2624163142142334 \cdot 10^{+27}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le -2.014594234406352 \cdot 10^{-62}:\\
\;\;\;\;\frac{\frac{1}{a}}{\sqrt{b_2 \cdot b_2 - c \cdot a} - b_2} \cdot \left(c \cdot a\right)\\
\mathbf{elif}\;b_2 \le -1.1320615158913861 \cdot 10^{-146}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\mathbf{elif}\;b_2 \le 2.8358752990862995 \cdot 10^{+119}:\\
\;\;\;\;\frac{\left(-b_2\right) - \sqrt{{b_2}^{2} - c \cdot a}}{a}\\
\mathbf{else}:\\
\;\;\;\;(-2 \cdot \left(\frac{b_2}{a}\right) + \left(\frac{c}{\frac{b_2}{\frac{1}{2}}}\right))_*\\
\end{array}\]