- Split input into 3 regimes
if b_2 < -2.818264606683512e+17
Initial program 32.1
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification32.1
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied sub-neg32.1
\[\leadsto \frac{\sqrt{\color{blue}{b_2 \cdot b_2 + \left(-a \cdot c\right)}} - b_2}{a}\]
Taylor expanded around -inf 7.1
\[\leadsto \color{blue}{-2 \cdot \frac{b_2}{a}}\]
if -2.818264606683512e+17 < b_2 < 1.2507329391222916e-46
Initial program 15.5
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification15.5
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied sub-neg15.5
\[\leadsto \frac{\sqrt{\color{blue}{b_2 \cdot b_2 + \left(-a \cdot c\right)}} - b_2}{a}\]
if 1.2507329391222916e-46 < b_2
Initial program 53.9
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification53.9
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied clear-num53.9
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
- Using strategy
rm Applied div-inv53.9
\[\leadsto \frac{1}{\color{blue}{a \cdot \frac{1}{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}}}\]
Taylor expanded around 0 8.2
\[\leadsto \frac{1}{\color{blue}{-2 \cdot \frac{b_2}{c}}}\]
- Recombined 3 regimes into one program.
Final simplification10.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -2.818264606683512 \cdot 10^{+17}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\mathbf{elif}\;b_2 \le 1.2507329391222916 \cdot 10^{-46}:\\
\;\;\;\;\frac{\sqrt{\left(-c\right) \cdot a + b_2 \cdot b_2} - b_2}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{-2 \cdot \frac{b_2}{c}}\\
\end{array}\]