- Split input into 4 regimes
if b_2 < -3.89006540944298138e133
Initial program 57.0
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified57.0
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
Taylor expanded around -inf 2.5
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} - 2 \cdot \frac{b_2}{a}}\]
Simplified2.8
\[\leadsto \color{blue}{\frac{1}{2} \cdot \frac{c}{b_2} + b_2 \cdot \frac{-2}{a}}\]
if -3.89006540944298138e133 < b_2 < -7.8834730216053692e-300
Initial program 9.3
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified9.3
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied div-sub9.3
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c}}{a} - \frac{b_2}{a}}\]
if -7.8834730216053692e-300 < b_2 < 1.07290354700792347e71
Initial program 31.0
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified31.0
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied flip--31.0
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c} - b_2 \cdot b_2}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}}{a}\]
Simplified16.5
\[\leadsto \frac{\frac{\color{blue}{0 - a \cdot c}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}{a}\]
Simplified16.5
\[\leadsto \frac{\frac{0 - a \cdot c}{\color{blue}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
- Using strategy
rm Applied sub0-neg16.5
\[\leadsto \frac{\frac{\color{blue}{-a \cdot c}}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Applied distribute-frac-neg16.5
\[\leadsto \frac{\color{blue}{-\frac{a \cdot c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
Applied distribute-frac-neg16.5
\[\leadsto \color{blue}{-\frac{\frac{a \cdot c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}}\]
Simplified9.2
\[\leadsto -\color{blue}{1 \cdot \frac{c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}\]
if 1.07290354700792347e71 < b_2
Initial program 57.3
\[\frac{\left(-b_2\right) + \sqrt{b_2 \cdot b_2 - a \cdot c}}{a}\]
Simplified57.3
\[\leadsto \color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} - b_2}{a}}\]
- Using strategy
rm Applied flip--57.3
\[\leadsto \frac{\color{blue}{\frac{\sqrt{b_2 \cdot b_2 - a \cdot c} \cdot \sqrt{b_2 \cdot b_2 - a \cdot c} - b_2 \cdot b_2}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}}{a}\]
Simplified30.1
\[\leadsto \frac{\frac{\color{blue}{0 - a \cdot c}}{\sqrt{b_2 \cdot b_2 - a \cdot c} + b_2}}{a}\]
Simplified30.1
\[\leadsto \frac{\frac{0 - a \cdot c}{\color{blue}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
- Using strategy
rm Applied sub0-neg30.1
\[\leadsto \frac{\frac{\color{blue}{-a \cdot c}}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}\]
Applied distribute-frac-neg30.1
\[\leadsto \frac{\color{blue}{-\frac{a \cdot c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}}{a}\]
Applied distribute-frac-neg30.1
\[\leadsto \color{blue}{-\frac{\frac{a \cdot c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}{a}}\]
Simplified27.1
\[\leadsto -\color{blue}{1 \cdot \frac{c}{b_2 + \sqrt{b_2 \cdot b_2 - a \cdot c}}}\]
Taylor expanded around inf 7.0
\[\leadsto -1 \cdot \frac{c}{b_2 + \color{blue}{\left(b_2 - \frac{1}{2} \cdot \frac{a \cdot c}{b_2}\right)}}\]
Simplified3.2
\[\leadsto -1 \cdot \frac{c}{b_2 + \color{blue}{\left(b_2 + a \cdot \frac{\frac{-1}{2}}{\frac{b_2}{c}}\right)}}\]
- Recombined 4 regimes into one program.
Final simplification6.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;b_2 \le -3.89006540944298138 \cdot 10^{133}:\\
\;\;\;\;\frac{1}{2} \cdot \frac{c}{b_2} + b_2 \cdot \frac{-2}{a}\\
\mathbf{elif}\;b_2 \le -7.8834730216053692 \cdot 10^{-300}:\\
\;\;\;\;\frac{\sqrt{b_2 \cdot b_2 - c \cdot a}}{a} - \frac{b_2}{a}\\
\mathbf{elif}\;b_2 \le 1.07290354700792347 \cdot 10^{71}:\\
\;\;\;\;\frac{-c}{b_2 + \sqrt{b_2 \cdot b_2 - c \cdot a}}\\
\mathbf{else}:\\
\;\;\;\;\frac{-c}{b_2 + \left(b_2 + a \cdot \frac{\frac{-1}{2}}{\frac{b_2}{c}}\right)}\\
\end{array}\]