- Split input into 4 regimes
if b_2 < -1.02765621091724702e121
Initial program 60.8
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--60.8
\[\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}\]
Simplified34.7
\[\leadsto \frac{\frac{\color{blue}{a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Simplified34.7
\[\leadsto \frac{\frac{a \cdot c}{\color{blue}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}}{a}\]
- Using strategy
rm Applied *-un-lft-identity34.7
\[\leadsto \frac{\frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}{\color{blue}{1 \cdot a}}\]
Applied *-un-lft-identity34.7
\[\leadsto \frac{\color{blue}{1 \cdot \frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}}{1 \cdot a}\]
Applied times-frac34.7
\[\leadsto \color{blue}{\frac{1}{1} \cdot \frac{\frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}{a}}\]
Simplified34.7
\[\leadsto \color{blue}{1} \cdot \frac{\frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}{a}\]
Simplified33.1
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}\]
Taylor expanded around -inf 6.2
\[\leadsto 1 \cdot \frac{c}{\color{blue}{\frac{1}{2} \cdot \frac{a \cdot c}{b_2} - 2 \cdot b_2}}\]
Simplified1.7
\[\leadsto 1 \cdot \frac{c}{\color{blue}{a \cdot \frac{\frac{1}{2}}{\frac{b_2}{c}} - b_2 \cdot 2}}\]
if -1.02765621091724702e121 < b_2 < 8.28228220137613734e-119
Initial program 29.4
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--30.7
\[\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}\]
Simplified17.7
\[\leadsto \frac{\frac{\color{blue}{a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Simplified17.7
\[\leadsto \frac{\frac{a \cdot c}{\color{blue}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}}{a}\]
- Using strategy
rm Applied *-un-lft-identity17.7
\[\leadsto \frac{\frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}{\color{blue}{1 \cdot a}}\]
Applied *-un-lft-identity17.7
\[\leadsto \frac{\color{blue}{1 \cdot \frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}}{1 \cdot a}\]
Applied times-frac17.7
\[\leadsto \color{blue}{\frac{1}{1} \cdot \frac{\frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}{a}}\]
Simplified17.7
\[\leadsto \color{blue}{1} \cdot \frac{\frac{a \cdot c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}{a}\]
Simplified11.5
\[\leadsto 1 \cdot \color{blue}{\frac{c}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}\]
if 8.28228220137613734e-119 < b_2 < 6.96571265548405628e24
Initial program 5.9
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied div-inv6.1
\[\leadsto \color{blue}{\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}\right) \cdot \frac{1}{a}}\]
if 6.96571265548405628e24 < b_2
Initial program 34.2
\[\frac{\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
- Using strategy
rm Applied flip--60.7
\[\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}\]
Simplified60.1
\[\leadsto \frac{\frac{\color{blue}{a \cdot c}}{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Simplified60.1
\[\leadsto \frac{\frac{a \cdot c}{\color{blue}{\sqrt{b_2 \cdot b_2 - a \cdot c} + \left(-b_2\right)}}}{a}\]
Taylor expanded around 0 6.7
\[\leadsto \frac{\color{blue}{-2 \cdot b_2}}{a}\]
Simplified6.7
\[\leadsto \frac{\color{blue}{b_2 \cdot -2}}{a}\]
- Recombined 4 regimes into one program.
Final simplification7.7
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -1.02765621091724702 \cdot 10^{121}:\\
\;\;\;\;\frac{c}{a \cdot \frac{\frac{1}{2}}{\frac{b_2}{c}} - b_2 \cdot 2}\\
\mathbf{elif}\;b_2 \le 8.28228220137613734 \cdot 10^{-119}:\\
\;\;\;\;\frac{c}{\sqrt{b_2 \cdot b_2 - c \cdot a} + \left(-b_2\right)}\\
\mathbf{elif}\;b_2 \le 6.96571265548405628 \cdot 10^{24}:\\
\;\;\;\;\left(\left(-b_2\right) - \sqrt{b_2 \cdot b_2 - c \cdot a}\right) \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{b_2 \cdot -2}{a}\\
\end{array}\]