- Split input into 4 regimes
if b_2 < -1.4636905970896212e146
Initial program 61.1
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around -inf 11.3
\[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot \frac{a \cdot c}{b_2} - 2 \cdot b_2}}{a}\]
Simplified2.8
\[\leadsto \frac{\color{blue}{\frac{1}{2} \cdot \left(c \cdot \frac{a}{b_2}\right) - \left(b_2 + b_2\right)}}{a}\]
if -1.4636905970896212e146 < b_2 < -2.093057343449044e-310
Initial program 9.3
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied div-inv9.4
\[\leadsto \color{blue}{\left(\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}\right) \cdot \frac{1}{a}}\]
if -2.093057343449044e-310 < b_2 < 7.06372498598648321e53
Initial program 29.5
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip-+29.6
\[\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}\]
Simplified16.4
\[\leadsto \frac{\frac{\color{blue}{a \cdot c}}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
- Using strategy
rm Applied *-un-lft-identity16.4
\[\leadsto \frac{\frac{a \cdot c}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}{\color{blue}{1 \cdot a}}\]
Applied *-un-lft-identity16.4
\[\leadsto \frac{\color{blue}{1 \cdot \frac{a \cdot c}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{1 \cdot a}\]
Applied times-frac16.4
\[\leadsto \color{blue}{\frac{1}{1} \cdot \frac{\frac{a \cdot c}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}}\]
Simplified16.4
\[\leadsto \color{blue}{1} \cdot \frac{\frac{a \cdot c}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Simplified8.8
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}}\]
if 7.06372498598648321e53 < b_2
Initial program 57.2
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Taylor expanded around inf 3.9
\[\leadsto \color{blue}{\frac{-1}{2} \cdot \frac{c}{b_2}}\]
- Recombined 4 regimes into one program.
Final simplification6.9
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.4636905970896212 \cdot 10^{146}:\\
\;\;\;\;\frac{\frac{1}{2} \cdot \left(c \cdot \frac{a}{b_2}\right) - \left(b_2 + b_2\right)}{a}\\
\mathbf{elif}\;b_2 \le -2.093057343449044 \cdot 10^{-310}:\\
\;\;\;\;\left(\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - c \cdot a}\right) \cdot \frac{1}{a}\\
\mathbf{elif}\;b_2 \le 7.06372498598648321 \cdot 10^{53}:\\
\;\;\;\;\frac{c}{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - c \cdot a}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{2} \cdot \frac{c}{b_2}\\
\end{array}\]