- Split input into 4 regimes
if b_2 < -2.9960999297428996e+90
Initial program 57.5
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 14.6
\[\leadsto \frac{\color{blue}{\frac{-1}{2} \cdot \frac{a \cdot c}{b_2}}}{a}\]
if -2.9960999297428996e+90 < b_2 < -2.1110849490305294e-131
Initial program 39.1
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--39.2
\[\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/42.1
\[\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)}}\]
Simplified18.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)}\]
if -2.1110849490305294e-131 < b_2 < 2.0766812404400347e+50
Initial program 11.9
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied clear-num12.0
\[\leadsto \color{blue}{\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}}\]
if 2.0766812404400347e+50 < b_2
Initial program 35.4
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 6.3
\[\leadsto \color{blue}{-2 \cdot \frac{b_2}{a}}\]
- Recombined 4 regimes into one program.
Final simplification12.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -2.9960999297428996 \cdot 10^{+90}:\\
\;\;\;\;\frac{\frac{-1}{2} \cdot \frac{a \cdot c}{b_2}}{a}\\
\mathbf{elif}\;b_2 \le -2.1110849490305294 \cdot 10^{-131}:\\
\;\;\;\;\frac{a \cdot c}{\left(\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)\right) \cdot a}\\
\mathbf{elif}\;b_2 \le 2.0766812404400347 \cdot 10^{+50}:\\
\;\;\;\;\frac{1}{\frac{a}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \frac{b_2}{a}\\
\end{array}\]