- Split input into 3 regimes
if b_2 < -1.2802147447265656e+121
Initial program 50.3
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification50.3
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied sub-neg50.3
\[\leadsto \frac{\sqrt{\color{blue}{b_2 \cdot b_2 + \left(-a \cdot c\right)}} - b_2}{a}\]
Taylor expanded around -inf 3.2
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
if -1.2802147447265656e+121 < b_2 < 2.7131217300870123e-130
Initial program 10.9
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification10.9
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied sub-neg10.9
\[\leadsto \frac{\sqrt{\color{blue}{b_2 \cdot b_2 + \left(-a \cdot c\right)}} - b_2}{a}\]
if 2.7131217300870123e-130 < b_2
Initial program 50.2
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Initial simplification50.2
\[\leadsto \frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}\]
- Using strategy
rm Applied sub-neg50.2
\[\leadsto \frac{\sqrt{\color{blue}{b_2 \cdot b_2 + \left(-a \cdot c\right)}} - b_2}{a}\]
- Using strategy
rm Applied div-inv50.2
\[\leadsto \color{blue}{\left(\sqrt{b_2 \cdot b_2 + \left(-a \cdot c\right)} - b_2\right) \cdot \frac{1}{a}}\]
Taylor expanded around inf 12.1
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
- Recombined 3 regimes into one program.
Final simplification10.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.2802147447265656 \cdot 10^{+121}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b_2} - \frac{b_2}{a} \cdot 2\\
\mathbf{elif}\;b_2 \le 2.7131217300870123 \cdot 10^{-130}:\\
\;\;\;\;\frac{\sqrt{\left(-c \cdot a\right) + b_2 \cdot b_2} - b_2}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{c}{b_2} \cdot \frac{-1}{2}\\
\end{array}\]